From 87252bb5ce4d80d519acdeb25a90ccb914d8bd0a Mon Sep 17 00:00:00 2001 From: res0nance Date: Thu, 25 Aug 2022 00:08:41 +0800 Subject: [PATCH] ci: add CI for the minimum supported version --- .github/workflows/github-actions.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index 42a9927..c5cf5b2 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -37,3 +37,30 @@ jobs: run: cmake --build build --target all -j$(nproc) - name: test run: cd build && ctest + build_and_test_min_version: + runs-on: ubuntu-latest + container: ghcr.io/nlohmann/json-ci:v1.0.0 + steps: + - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." + - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub." + - run: echo "🔎 Branch name is ${{ github.ref }} and repository is ${{ github.repository }}." + - name: Clone nlohmann json + uses: actions/checkout@master + with: + repository: nlohmann/json + path: nlohmann-json + ref: v3.8.0 + - name: Build and install nlohmann json + run: | + cd nlohmann-json + cmake -S . -B build + cmake --build build --target install -j$(nproc) + cd .. + - name: Clone json-schema-validator + uses: actions/checkout@v2 + - name: cmake + run: cmake -S . -B build + - name: build + run: cmake --build build --target all -j$(nproc) + - name: test + run: cd build && ctest