|
| 1 | +name: CI |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: [main] |
| 6 | + pull_request: |
| 7 | + branches: [main] |
| 8 | + |
| 9 | +concurrency: |
| 10 | + group: ci-${{ github.ref }} |
| 11 | + cancel-in-progress: true |
| 12 | + |
| 13 | +env: |
| 14 | + VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite" |
| 15 | + |
| 16 | +jobs: |
| 17 | + build: |
| 18 | + strategy: |
| 19 | + fail-fast: false |
| 20 | + matrix: |
| 21 | + include: |
| 22 | + - os: ubuntu-24.04 |
| 23 | + compiler: gcc |
| 24 | + conformance: true |
| 25 | + - os: macos-14 |
| 26 | + compiler: apple-clang |
| 27 | + conformance: false |
| 28 | + |
| 29 | + runs-on: ${{ matrix.os }} |
| 30 | + |
| 31 | + steps: |
| 32 | + - uses: actions/checkout@v4 |
| 33 | + |
| 34 | + - name: Export GitHub Actions cache env vars |
| 35 | + uses: actions/github-script@v7 |
| 36 | + with: |
| 37 | + script: | |
| 38 | + core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); |
| 39 | + core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); |
| 40 | +
|
| 41 | + - name: Clone and bootstrap vcpkg |
| 42 | + run: | |
| 43 | + git clone https://github.com/microsoft/vcpkg.git |
| 44 | + git -C vcpkg checkout 05442024c3fda64320bd25d2251cc9807b84fb6f |
| 45 | + ./vcpkg/bootstrap-vcpkg.sh -disableMetrics |
| 46 | +
|
| 47 | + - name: Configure |
| 48 | + run: cmake --preset default |
| 49 | + |
| 50 | + - name: Build |
| 51 | + run: cmake --build --preset default --parallel |
| 52 | + |
| 53 | + - name: Test (unit) |
| 54 | + run: ctest --test-dir build --output-on-failure -E conformance |
| 55 | + |
| 56 | + - name: Setup Python |
| 57 | + if: matrix.conformance |
| 58 | + uses: actions/setup-python@v5 |
| 59 | + with: |
| 60 | + python-version: "3.12" |
| 61 | + |
| 62 | + - name: Install pyarrow |
| 63 | + if: matrix.conformance |
| 64 | + run: pip install pyarrow |
| 65 | + |
| 66 | + - name: Clone vgi-rpc (Python) |
| 67 | + if: matrix.conformance |
| 68 | + run: git clone https://github.com/Query-farm/vgi-rpc.git ../vgi-rpc |
| 69 | + |
| 70 | + - name: Test (conformance) |
| 71 | + if: matrix.conformance |
| 72 | + env: |
| 73 | + CONFORMANCE_WORKER: ${{ github.workspace }}/build/conformance/conformance_worker |
| 74 | + VGI_RPC_PYTHON_PATH: ${{ github.workspace }}/../vgi-rpc |
| 75 | + run: ctest --test-dir build --output-on-failure -R conformance |
0 commit comments