⚗️ try official GCC containers
This commit is contained in:
parent
a17298480d
commit
4e51a8fdae
290
.github/workflows/ubuntu.yml
vendored
290
.github/workflows/ubuntu.yml
vendored
@ -14,81 +14,81 @@ concurrency:
|
|||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ci_test_clang:
|
# ci_test_clang:
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
container: ghcr.io/nlohmann/json-ci:v2.4.0
|
# container: ghcr.io/nlohmann/json-ci:v2.4.0
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/checkout@v3
|
# - uses: actions/checkout@v3
|
||||||
- name: Run CMake
|
# - name: Run CMake
|
||||||
run: cmake -S . -B build -DJSON_CI=On
|
# run: cmake -S . -B build -DJSON_CI=On
|
||||||
- name: Build
|
# - name: Build
|
||||||
run: cmake --build build --target ci_test_clang
|
# run: cmake --build build --target ci_test_clang
|
||||||
|
#
|
||||||
ci_test_gcc:
|
# ci_test_gcc:
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
container: ghcr.io/nlohmann/json-ci:v2.4.0
|
# container: ghcr.io/nlohmann/json-ci:v2.4.0
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/checkout@v3
|
# - uses: actions/checkout@v3
|
||||||
- name: Run CMake
|
# - name: Run CMake
|
||||||
run: cmake -S . -B build -DJSON_CI=On
|
# run: cmake -S . -B build -DJSON_CI=On
|
||||||
- name: Build
|
# - name: Build
|
||||||
run: cmake --build build --target ci_test_gcc
|
# run: cmake --build build --target ci_test_gcc
|
||||||
|
#
|
||||||
ci_static_analysis:
|
# ci_static_analysis:
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
container: ghcr.io/nlohmann/json-ci:v2.4.0
|
# container: ghcr.io/nlohmann/json-ci:v2.4.0
|
||||||
strategy:
|
# strategy:
|
||||||
matrix:
|
# matrix:
|
||||||
target: [ci_clang_tidy, ci_cppcheck, ci_test_valgrind, ci_test_clang_sanitizer, ci_test_amalgamation, ci_clang_analyze, ci_cpplint, ci_cmake_flags, ci_single_binaries, ci_reproducible_tests, ci_non_git_tests, ci_offline_testdata, ci_infer]
|
# target: [ci_clang_tidy, ci_cppcheck, ci_test_valgrind, ci_test_clang_sanitizer, ci_test_amalgamation, ci_clang_analyze, ci_cpplint, ci_cmake_flags, ci_single_binaries, ci_reproducible_tests, ci_non_git_tests, ci_offline_testdata, ci_infer]
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/checkout@v3
|
# - uses: actions/checkout@v3
|
||||||
- name: Run CMake
|
# - name: Run CMake
|
||||||
run: cmake -S . -B build -DJSON_CI=On
|
# run: cmake -S . -B build -DJSON_CI=On
|
||||||
- name: Build
|
# - name: Build
|
||||||
run: cmake --build build --target ${{ matrix.target }}
|
# run: cmake --build build --target ${{ matrix.target }}
|
||||||
|
#
|
||||||
ci_test_single_header:
|
# ci_test_single_header:
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
container: ghcr.io/nlohmann/json-ci:v2.4.0
|
# container: ghcr.io/nlohmann/json-ci:v2.4.0
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/checkout@v3
|
# - uses: actions/checkout@v3
|
||||||
- name: Run CMake
|
# - name: Run CMake
|
||||||
run: cmake -S . -B build -DJSON_CI=On
|
# run: cmake -S . -B build -DJSON_CI=On
|
||||||
- name: Build
|
# - name: Build
|
||||||
run: cmake --build build --target ci_test_single_header
|
# run: cmake --build build --target ci_test_single_header
|
||||||
|
#
|
||||||
ci_cmake_options:
|
# ci_cmake_options:
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
container: ghcr.io/nlohmann/json-ci:v2.4.0
|
# container: ghcr.io/nlohmann/json-ci:v2.4.0
|
||||||
strategy:
|
# strategy:
|
||||||
matrix:
|
# matrix:
|
||||||
target: [ci_test_diagnostics, ci_test_noexceptions, ci_test_noimplicitconversions, ci_test_legacycomparison, ci_test_noglobaludls]
|
# target: [ci_test_diagnostics, ci_test_noexceptions, ci_test_noimplicitconversions, ci_test_legacycomparison, ci_test_noglobaludls]
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/checkout@v3
|
# - uses: actions/checkout@v3
|
||||||
- name: Run CMake
|
# - name: Run CMake
|
||||||
run: cmake -S . -B build -DJSON_CI=On
|
# run: cmake -S . -B build -DJSON_CI=On
|
||||||
- name: Build
|
# - name: Build
|
||||||
run: cmake --build build --target ${{ matrix.target }}
|
# run: cmake --build build --target ${{ matrix.target }}
|
||||||
|
#
|
||||||
ci_test_coverage:
|
# ci_test_coverage:
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
container: ghcr.io/nlohmann/json-ci:v2.4.0
|
# container: ghcr.io/nlohmann/json-ci:v2.4.0
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/checkout@v3
|
# - uses: actions/checkout@v3
|
||||||
- name: Run CMake
|
# - name: Run CMake
|
||||||
run: cmake -S . -B build -DJSON_CI=On
|
# run: cmake -S . -B build -DJSON_CI=On
|
||||||
- name: Build
|
# - name: Build
|
||||||
run: cmake --build build --target ci_test_coverage
|
# run: cmake --build build --target ci_test_coverage
|
||||||
- name: Archive coverage report
|
# - name: Archive coverage report
|
||||||
uses: actions/upload-artifact@v3
|
# uses: actions/upload-artifact@v3
|
||||||
with:
|
# with:
|
||||||
name: code-coverage-report
|
# name: code-coverage-report
|
||||||
path: ${{ github.workspace }}/build/html
|
# path: ${{ github.workspace }}/build/html
|
||||||
- name: Publish report to Coveralls
|
# - name: Publish report to Coveralls
|
||||||
uses: coverallsapp/github-action@master
|
# uses: coverallsapp/github-action@master
|
||||||
with:
|
# with:
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
# github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
path-to-lcov: ${{ github.workspace }}/build/json.info.filtered.noexcept
|
# path-to-lcov: ${{ github.workspace }}/build/json.info.filtered.noexcept
|
||||||
|
|
||||||
ci_test_compilers_gcc:
|
ci_test_compilers_gcc:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -105,73 +105,73 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
run: cmake --build build --target ci_test_compiler_default
|
run: cmake --build build --target ci_test_compiler_default
|
||||||
|
|
||||||
ci_test_compilers:
|
# ci_test_compilers:
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
container: ghcr.io/nlohmann/json-ci:v2.4.0
|
# container: ghcr.io/nlohmann/json-ci:v2.4.0
|
||||||
strategy:
|
# strategy:
|
||||||
matrix:
|
# matrix:
|
||||||
compiler: [g++-4.8, g++-4.9, g++-5, g++-6, g++-7, g++-8, g++-9, g++-10, g++-11, clang++-3.5, clang++-3.6, clang++-3.7, clang++-3.8, clang++-3.9, clang++-4.0, clang++-5.0, clang++-6.0, clang++-7, clang++-8, clang++-9, clang++-10, clang++-11, clang++-12, clang++-13, clang++-14]
|
# compiler: [g++-4.8, g++-4.9, g++-5, g++-6, g++-7, g++-8, g++-9, g++-10, g++-11, clang++-3.5, clang++-3.6, clang++-3.7, clang++-3.8, clang++-3.9, clang++-4.0, clang++-5.0, clang++-6.0, clang++-7, clang++-8, clang++-9, clang++-10, clang++-11, clang++-12, clang++-13, clang++-14]
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/checkout@v3
|
# - uses: actions/checkout@v3
|
||||||
- name: Run CMake
|
# - name: Run CMake
|
||||||
run: cmake -S . -B build -DJSON_CI=On
|
# run: cmake -S . -B build -DJSON_CI=On
|
||||||
- name: Build
|
# - name: Build
|
||||||
run: cmake --build build --target ci_test_compiler_${{ matrix.compiler }}
|
# run: cmake --build build --target ci_test_compiler_${{ matrix.compiler }}
|
||||||
|
#
|
||||||
ci_test_standards:
|
# ci_test_standards:
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
container: ghcr.io/nlohmann/json-ci:v2.4.0
|
# container: ghcr.io/nlohmann/json-ci:v2.4.0
|
||||||
strategy:
|
# strategy:
|
||||||
matrix:
|
# matrix:
|
||||||
standard: [11, 14, 17, 20]
|
# standard: [11, 14, 17, 20]
|
||||||
compiler: [gcc, clang]
|
# compiler: [gcc, clang]
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/checkout@v3
|
# - uses: actions/checkout@v3
|
||||||
- name: Run CMake
|
# - name: Run CMake
|
||||||
run: cmake -S . -B build -DJSON_CI=On
|
# run: cmake -S . -B build -DJSON_CI=On
|
||||||
- name: Build
|
# - name: Build
|
||||||
run: cmake --build build --target ci_test_${{ matrix.compiler }}_cxx${{ matrix.standard }}
|
# run: cmake --build build --target ci_test_${{ matrix.compiler }}_cxx${{ matrix.standard }}
|
||||||
|
#
|
||||||
ci_cuda_example:
|
# ci_cuda_example:
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
container: ghcr.io/nlohmann/json-ci:v2.4.0
|
# container: ghcr.io/nlohmann/json-ci:v2.4.0
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/checkout@v3
|
# - uses: actions/checkout@v3
|
||||||
- name: Run CMake
|
# - name: Run CMake
|
||||||
run: cmake -S . -B build -DJSON_CI=On
|
# run: cmake -S . -B build -DJSON_CI=On
|
||||||
- name: Build
|
# - name: Build
|
||||||
run: cmake --build build --target ci_cuda_example
|
# run: cmake --build build --target ci_cuda_example
|
||||||
|
#
|
||||||
ci_icpc:
|
# ci_icpc:
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
container: ghcr.io/nlohmann/json-ci:v2.2.0
|
# container: ghcr.io/nlohmann/json-ci:v2.2.0
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/checkout@v2
|
# - uses: actions/checkout@v2
|
||||||
- name: Run CMake
|
# - name: Run CMake
|
||||||
run: cmake -S . -B build -DJSON_CI=On
|
# run: cmake -S . -B build -DJSON_CI=On
|
||||||
- name: Build
|
# - name: Build
|
||||||
run: |
|
# run: |
|
||||||
. /opt/intel/oneapi/setvars.sh
|
# . /opt/intel/oneapi/setvars.sh
|
||||||
cmake --build build --target ci_icpc
|
# cmake --build build --target ci_icpc
|
||||||
|
#
|
||||||
ci_reuse_compliance:
|
# ci_reuse_compliance:
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/checkout@v3
|
# - uses: actions/checkout@v3
|
||||||
- uses: actions/setup-python@v3
|
# - uses: actions/setup-python@v3
|
||||||
- name: Install REUSE tool
|
# - name: Install REUSE tool
|
||||||
run: python -m pip install reuse
|
# run: python -m pip install reuse
|
||||||
- name: Run REUSE lint
|
# - name: Run REUSE lint
|
||||||
run: reuse lint
|
# run: reuse lint
|
||||||
|
#
|
||||||
ci_test_documentation:
|
# ci_test_documentation:
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
strategy:
|
# strategy:
|
||||||
matrix:
|
# matrix:
|
||||||
target: [ci_test_examples, ci_test_api_documentation]
|
# target: [ci_test_examples, ci_test_api_documentation]
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/checkout@v3
|
# - uses: actions/checkout@v3
|
||||||
- name: Run CMake
|
# - name: Run CMake
|
||||||
run: cmake -S . -B build -DJSON_CI=On
|
# run: cmake -S . -B build -DJSON_CI=On
|
||||||
- name: Build
|
# - name: Build
|
||||||
run: cmake --build build --target ${{ matrix.target }}
|
# run: cmake --build build --target ${{ matrix.target }}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user