Skip to content

Commit

Permalink
👷 Test with different stdlib
Browse files Browse the repository at this point in the history
  • Loading branch information
leon0399 committed Jul 26, 2024
1 parent c85eb68 commit b7b0b6d
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:
matrix:
os: [ ubuntu-latest ]
compiler:
- g++-10
- g++-11
- g++-12
- g++-13
Expand All @@ -32,8 +31,15 @@ jobs:
- 17
- 20
- 23
stdlib:
- libstdc++
- libc++
generator: [ Ninja ]

exclude:
- os: ubuntu-latest
compiler: g++-13

include:
- os: ubuntu-latest
compiler: g++
Expand All @@ -52,7 +58,7 @@ jobs:
uses: seanmiddleditch/gha-setup-ninja@v4

- name: Setup Depenedencies
if: ${{ matrix.os == 'ubuntu-latest' }}
if: ${{ startsWith(matrix.os, 'ubuntu') }}
shell: bash
run: |
sudo apt-get update
Expand All @@ -70,7 +76,7 @@ jobs:
path: |
build/_deps/*-build
build/_deps/*-subbuild
key: cmake-dependency-builds-${{ runner.os }}-${{ matrix.compiler }}-${{ hashFiles('**/CMakeLists.txt') }}
key: cmake-dependency-builds-${{ runner.os }}-${{ matrix.compiler }}-${{ matrix.std }}-${{ hashFiles('**/CMakeLists.txt') }}
restore-keys: |
cmake-dependency-builds-${{ runner.os }}-${{ matrix.compiler }}-
cmake-dependency-builds-${{ runner.os }}-
Expand All @@ -81,10 +87,13 @@ jobs:
run-build: true
args: >-
-DCMAKE_BUILD_TYPE=Debug
-DCMAKE_VERBOSE_MAKEFILE=ON
-DENABLE_COVERAGE=${{ matrix.coverage == true && 'ON' || 'OFF' }}
${{ matrix.std && format('-DCMAKE_CXX_STANDARD={0}', matrix.std) || '' }}
cxx-compiler: ${{ matrix.compiler }}
cxx-flags: ${{ matrix.std && format('-std=c++{0}', matrix.std) || '' }}
cxx-flags: >-
${{ matrix.std && format('-std=c++{0}', matrix.std) || '' }}
${{ matrix.stdlib && format('-stdlib={0}', matrix.stdlib) || '' }}
- name: Test Project
uses: threeal/[email protected]
Expand Down

0 comments on commit b7b0b6d

Please sign in to comment.