Skip to content

Commit

Permalink
ci: update CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-vincent committed Jan 15, 2025
1 parent 3c7f462 commit e4cac59
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
build_type: [ Release, RelWithDebInfo ]
build_type: [ Release ]
os: [ ubuntu-20.04, windows-2019 ]
include:
- os: ubuntu-20.04
Expand Down Expand Up @@ -78,12 +78,20 @@ jobs:
pip install conan
conan profile detect --force
- name: Build with Conan (Linux)
- name: Install Dependencies with Conan (Linux)
if: runner.os == 'Linux'
run: |
conan create . --build=missing -s compiler.cppstd=20 -s build_type=${{ matrix.build_type }} -c tools.cmake.cmaketoolchain:generator=Ninja -s compiler.libcxx=libc++
conan install . --build=missing -s compiler.cppstd=20 -s build_type=${{ matrix.build_type }} -c tools.cmake.cmaketoolchain:generator=Ninja -s compiler.libcxx=libc++
- name: Build with Conan (Windows)
- name: Install Dependencies with Conan (Windows)
if: runner.os == 'Windows'
run: |
conan create . --build=missing -s compiler.cppstd=20 -s build_type=${{ matrix.build_type }} -c tools.cmake.cmaketoolchain:generator=Ninja
conan install . --build=missing -s compiler.cppstd=20 -s build_type=${{ matrix.build_type }} -c tools.cmake.cmaketoolchain:generator=Ninja
- name: Build with CMake
run: |
cmake -DCMAKE_TOOLCHAIN_FILE=build/${{ matrix.build_type }}/generators/conan_toolchain.cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
cmake --build build/${{ matrix.build_type }}
- name: Run Tests
run: ctest --test-dir build/${{ matrix.build_type }}

0 comments on commit e4cac59

Please sign in to comment.