-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 🔧 add more GCC warning flags * 👷 use GCC image for GCC test * 👷 use GCC image for GCC test * 👷 use GCC image for GCC test * 👷 use GCC image for GCC test * 👷 use GCC image for GCC test * 👷 use GCC image for GCC test * 👷 use GCC image for GCC test * 👷 use GCC image for GCC test * 🔧 adjust flags * 👷 adjust jobs * 👷 adjust jobs
- Loading branch information
Showing
2 changed files
with
78 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,9 +33,11 @@ jobs: | |
|
||
ci_test_gcc: | ||
runs-on: ubuntu-latest | ||
container: ghcr.io/nlohmann/json-ci:v2.4.0 | ||
container: gcc:latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Get latest CMake and ninja | ||
uses: lukka/[email protected] | ||
- name: Run CMake | ||
run: cmake -S . -B build -DJSON_CI=On | ||
- name: Build | ||
|
@@ -46,14 +48,32 @@ jobs: | |
container: ghcr.io/nlohmann/json-ci:v2.4.0 | ||
strategy: | ||
matrix: | ||
target: [ci_cppcheck, ci_test_valgrind, ci_test_amalgamation, ci_test_single_header, ci_single_binaries, ci_infer] | ||
target: [ | ||
ci_cppcheck, # needs cppcheck | ||
ci_test_valgrind, # needs Valgrind | ||
ci_test_amalgamation, # needs AStyle | ||
ci_infer, # needs Infer | ||
ci_single_binaries # needs iwyu | ||
] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Run CMake | ||
run: cmake -S . -B build -DJSON_CI=On | ||
- name: Build | ||
run: cmake --build build --target ${{ matrix.target }} | ||
|
||
ci_test_single_header: | ||
runs-on: ubuntu-latest | ||
container: gcc:latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Get latest CMake and ninja | ||
uses: lukka/[email protected] | ||
- name: Run CMake | ||
run: cmake -S . -B build -DJSON_CI=On | ||
- name: Build | ||
run: cmake --build build --target ci_test_single_header | ||
|
||
ci_static_analysis_ubuntu: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
|
@@ -180,27 +200,16 @@ jobs: | |
- name: Build | ||
run: cmake --build build --target ci_test_compiler_default | ||
|
||
ci_test_compilers: | ||
runs-on: ubuntu-latest | ||
container: ghcr.io/nlohmann/json-ci:v2.4.0 | ||
strategy: | ||
matrix: | ||
compiler: [g++-4.8] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Run CMake | ||
run: cmake -S . -B build -DJSON_CI=On | ||
- name: Build | ||
run: cmake --build build --target ci_test_compiler_${{ matrix.compiler }} | ||
|
||
ci_test_standards_gcc: | ||
runs-on: ubuntu-latest | ||
container: ghcr.io/nlohmann/json-ci:v2.4.0 | ||
container: gcc:latest | ||
strategy: | ||
matrix: | ||
standard: [11, 14, 17, 20, 23] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Get latest CMake and ninja | ||
uses: lukka/[email protected] | ||
- name: Run CMake | ||
run: cmake -S . -B build -DJSON_CI=On | ||
- name: Build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters