Merge pull request #599 from pdet/merge #168
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Debug Mode Tests | |
| on: [push, pull_request,repository_dispatch] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || '' }}-${{ github.base_ref || '' }}-${{ github.ref != 'refs/heads/main' || github.sha }} | |
| cancel-in-progress: true | |
| defaults: | |
| run: | |
| shell: bash | |
| jobs: | |
| ducklake-config-tests: | |
| name: DuckLake (Debug) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| # Add commits/tags to build against other DuckDB versions | |
| duckdb_version: [ '<submodule_version>' ] | |
| arch: ['linux_amd64'] | |
| vcpkg_version: [ '2023.04.15' ] | |
| include: | |
| - arch: 'linux_amd64' | |
| vcpkg_triplet: 'x64-linux' | |
| env: | |
| VCPKG_TARGET_TRIPLET: ${{ matrix.vcpkg_triplet }} | |
| GEN: Ninja | |
| VCPKG_TOOLCHAIN_PATH: ${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake | |
| DISABLE_EXTENSIONS_FOR_TEST: ON | |
| steps: | |
| - name: "node-cleanup" | |
| run: | | |
| sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /opt/hostedtoolcache/CodeQL | |
| sudo docker image prune --all --force | |
| sudo docker builder prune -a | |
| - name: Install required ubuntu packages | |
| run: | | |
| sudo apt-get update -y -qq | |
| sudo apt-get install -y -qq build-essential cmake ninja-build ccache python3 | |
| - uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| submodules: 'true' | |
| - name: Checkout DuckDB to version | |
| if: ${{ matrix.duckdb_version != '<submodule_version>'}} | |
| run: | | |
| cd duckdb | |
| git checkout ${{ matrix.duckdb_version }} | |
| - name: Setup Ccache | |
| uses: hendrikmuhs/ccache-action@main | |
| with: | |
| key: ${{ github.job }} | |
| save: ${{ github.ref == 'refs/heads/main' || github.repository != 'duckdb/duckdb-postgres' }} | |
| - name: Setup vcpkg | |
| uses: lukka/[email protected] | |
| with: | |
| vcpkgGitCommitId: a42af01b72c28a8e1d7b48107b33e4f286a55ef6 | |
| - name: Build extension | |
| env: | |
| GEN: ninja | |
| CMAKE_BUILD_PARALLEL_LEVEL: 2 | |
| run: | | |
| make debug | |
| - name: Test extension | |
| run: | | |
| build/debug/test/unittest |