From 28c2c56669664e7504ab150212fcc7434cb90478 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Mon, 13 Mar 2023 21:47:50 +0100 Subject: [PATCH] :green_heart: add more compiler versions --- .github/workflows/ubuntu.yml | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index f82f31fdc..a53506305 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -129,7 +129,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - compiler: ['4', '5', '6', '7', '8', '9', '10', '11', '12', '13', 'latest'] + compiler: ['4', '5', '6', '7', '8', '9', '10', '11', '12', 'latest'] container: gcc:${{ matrix.compiler }} steps: - uses: actions/checkout@v3 @@ -173,19 +173,35 @@ jobs: - name: Build run: cmake --build build --target ci_test_compiler_${{ matrix.compiler }} - ci_test_standards: + ci_test_standards_gcc: runs-on: ubuntu-latest container: ghcr.io/nlohmann/json-ci:v2.4.0 strategy: matrix: standard: [11, 14, 17, 20] - compiler: [gcc, clang] steps: - uses: actions/checkout@v3 - name: Run CMake run: cmake -S . -B build -DJSON_CI=On - name: Build - run: cmake --build build --target ci_test_${{ matrix.compiler }}_cxx${{ matrix.standard }} + run: cmake --build build --target ci_test_gcc_cxx${{ matrix.standard }} + + ci_test_standards_clang: + runs-on: ubuntu-latest + container: silkeh/clang:dev + strategy: + matrix: + standard: [11, 14, 17, 20] + steps: + - name: Install git and unzip + run: apt-get update ; apt-get install -y git unzip + - uses: actions/checkout@v3 + - name: Get latest CMake and ninja + uses: lukka/get-cmake@latest + - name: Run CMake + run: cmake -S . -B build -DJSON_CI=On + - name: Build + run: cmake --build build --target ci_test_clang_cxx${{ matrix.standard }} ci_cuda_example: runs-on: ubuntu-latest