Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 22 additions & 3 deletions .github/workflows/CI-Linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,26 @@ jobs:
std: [11, 17]
steps:
- uses: actions/checkout@v3
- name: Build and Run Tests
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y cmake
- name: Configure
run: cmake -S . -B build -DBUILD_TESTS=ON -DCMAKE_CXX_STANDARD=${{ matrix.std }}
- name: Build
run: cmake --build build
- name: Run tests
run: cd build && ctest --output-on-failure
vcpkg:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install vcpkg
run: |
sudo apt-get update && sudo apt-get install -y cmake
CXX_STANDARD=${{ matrix.std }} ./scripts/run_tests.sh
git clone https://github.com/microsoft/vcpkg.git
./vcpkg/bootstrap-vcpkg.sh
./vcpkg/vcpkg install gtest
- name: Configure
run: cmake -S . -B build -DBUILD_TESTS=ON -DCMAKE_TOOLCHAIN_FILE=./vcpkg/scripts/buildsystems/vcpkg.cmake
- name: Build
run: cmake --build build
- name: Run tests
run: cd build && ctest --output-on-failure
12 changes: 8 additions & 4 deletions .github/workflows/CI-Win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,12 @@ jobs:
mingw-w64-x86_64-toolchain
mingw-w64-x86_64-cmake
mingw-w64-x86_64-make
- name: Build and Run Tests
- name: Configure
shell: msys2 {0}
run: |
export CXX_STANDARD=${{ matrix.std }}
./scripts/run_tests.sh
run: cmake -S . -B build -DBUILD_TESTS=ON -DCMAKE_CXX_STANDARD=${{ matrix.std }}
- name: Build
shell: msys2 {0}
run: cmake --build build
- name: Run tests
shell: msys2 {0}
run: ctest --test-dir build --output-on-failure
Loading