Skip to content

Commit

Permalink
ci: add job to build experimental + c++20 configs
Browse files Browse the repository at this point in the history
  • Loading branch information
axxel committed Mar 21, 2024
1 parent b8c4f71 commit 04f3246
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,40 @@ jobs:
name: ${{matrix.os}}-artifacts
path: install

build-experimental:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-13]

steps:
- uses: actions/checkout@v4
with:
submodules: true

- name: Configure
run: >
cmake -S . -B build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_SHARED_LIBS=ON
-DZXING_READERS=ON -DZXING_WRITERS=NEW -DZXING_EXPERIMENTAL_API=ON -DCMAKE_CXX_STANDARD=20
-DZXING_BLACKBOX_TESTS=ON -DZXING_UNIT_TESTS=OFF -DZXING_PYTHON_MODULE=OFF -DZXING_C_API=ON
- name: Build
run: cmake --build build -j8 --config ${{env.BUILD_TYPE}}

- name: Test
if: runner.os != 'Windows' # need to disable ctest on Windows when build as shared library for now
run: ctest --test-dir build -V -C ${{env.BUILD_TYPE}}

- name: Install
run: |
cmake -E make_directory install
cmake --install build --config ${{env.BUILD_TYPE}} --prefix ${{github.workspace}}/install
- uses: actions/upload-artifact@v4
with:
name: ${{matrix.os}}-exp-artifacts
path: install

build-ubuntu-sanitize:
runs-on: ubuntu-20.04 # see https://github.com/quantumlib/Stim/issues/717#issuecomment-2002623560
steps:
Expand Down

0 comments on commit 04f3246

Please sign in to comment.