From 796c8a8754bcc729a60e278295528bc7c12b99e4 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Sun, 29 Aug 2021 13:16:17 +0200 Subject: [PATCH] :pushpin: pin image to version --- .github/workflows/ubuntu.yml | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index eb20a26d8..6fa7791fa 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -11,20 +11,9 @@ on: jobs: ci_test_clang: runs-on: ubuntu-latest + container: ghcr.io/nlohmann/json-ci:v1.0.0 steps: - uses: actions/checkout@v2 - - name: install_ninja - run: | - sudo apt update - sudo apt install ninja-build - shell: bash - - name: install_clang - run: | - wget https://apt.llvm.org/llvm.sh - chmod +x llvm.sh - sudo ./llvm.sh 11 - sudo apt-get install clang-tools-11 - shell: bash - name: cmake run: cmake -S . -B build -DJSON_CI=On - name: build @@ -32,7 +21,7 @@ jobs: ci_test_gcc: runs-on: ubuntu-latest - container: ghcr.io/nlohmann/json-ci:latest + container: ghcr.io/nlohmann/json-ci:v1.0.0 steps: - uses: actions/checkout@v2 - name: cmake @@ -42,7 +31,7 @@ jobs: ci_static_analysis: runs-on: ubuntu-latest - container: ghcr.io/nlohmann/json-ci:latest + container: ghcr.io/nlohmann/json-ci:v1.0.0 strategy: 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] @@ -55,7 +44,7 @@ jobs: ci_cmake_options: runs-on: ubuntu-latest - container: ghcr.io/nlohmann/json-ci:latest + container: ghcr.io/nlohmann/json-ci:v1.0.0 strategy: matrix: target: [ci_test_diagnostics, ci_test_noexceptions, ci_test_noimplicitconversions] @@ -68,7 +57,7 @@ jobs: ci_test_coverage: runs-on: ubuntu-latest - container: ghcr.io/nlohmann/json-ci:latest + container: ghcr.io/nlohmann/json-ci:v1.0.0 steps: - uses: actions/checkout@v2 - name: cmake @@ -88,7 +77,7 @@ jobs: ci_test_compilers: runs-on: ubuntu-latest - container: ghcr.io/nlohmann/json-ci:latest + container: ghcr.io/nlohmann/json-ci:v1.0.0 strategy: matrix: compiler: [g++-4.8, g++-4.9, g++-5, g++-7, g++-8, g++-9, g++-10, 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] @@ -101,7 +90,7 @@ jobs: ci_test_standards: runs-on: ubuntu-latest - container: ghcr.io/nlohmann/json-ci:latest + container: ghcr.io/nlohmann/json-ci:v1.0.0 strategy: matrix: standard: [11, 14, 17, 20]