diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 9040d8372..35fb9573c 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -25,7 +25,7 @@ jobs: 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 + uses: lukka/get-cmake@v3.27.7 - name: Run CMake run: cmake -S . -B build -DJSON_CI=On - name: Build @@ -62,7 +62,7 @@ jobs: steps: - uses: actions/checkout@v3 - name: Get latest CMake and ninja - uses: lukka/get-cmake@latest + uses: lukka/get-cmake@v3.27.7 - name: Run CMake run: cmake -S . -B build -DJSON_CI=On - name: Build @@ -79,7 +79,7 @@ jobs: run: apt-get update ; apt-get install -y git clang-tools unzip - uses: actions/checkout@v3 - name: Get latest CMake and ninja - uses: lukka/get-cmake@latest + uses: lukka/get-cmake@v3.27.7 - name: Run CMake run: cmake -S . -B build -DJSON_CI=On - name: Build @@ -96,7 +96,7 @@ jobs: run: apt-get update ; apt-get install -y build-essential unzip wget git - uses: actions/checkout@v3 - name: Get latest CMake and ninja - uses: lukka/get-cmake@latest + uses: lukka/get-cmake@v3.27.7 - name: Run CMake run: cmake -S . -B build -DJSON_CI=On - name: Build @@ -134,7 +134,7 @@ jobs: steps: - uses: actions/checkout@v3 - name: Get latest CMake and ninja - uses: lukka/get-cmake@latest + uses: lukka/get-cmake@v3.27.7 - name: Run CMake run: cmake -S . -B build -DJSON_CI=On - name: Build @@ -151,7 +151,7 @@ jobs: run: apt-get update ; apt-get install -y unzip git - uses: actions/checkout@v3 - name: Get latest CMake and ninja - uses: lukka/get-cmake@latest + uses: lukka/get-cmake@v3.27.7 - name: Set env FORCE_STDCPPFS_FLAG for clang 7 / 8 / 9 / 10 run: echo "JSON_FORCED_GLOBAL_COMPILE_OPTIONS=-DJSON_HAS_FILESYSTEM=0;-DJSON_HAS_EXPERIMENTAL_FILESYSTEM=0" >> "$GITHUB_ENV" if: ${{ matrix.compiler == '7' || matrix.compiler == '8' || matrix.compiler == '9' || matrix.compiler == '10' }} @@ -197,7 +197,7 @@ jobs: 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 + uses: lukka/get-cmake@v3.27.7 - name: Run CMake run: cmake -S . -B build -DJSON_CI=On - name: Build diff --git a/tests/src/unit-custom-base-class.cpp b/tests/src/unit-custom-base-class.cpp index ca916a9b9..2526453bf 100644 --- a/tests/src/unit-custom-base-class.cpp +++ b/tests/src/unit-custom-base-class.cpp @@ -239,7 +239,7 @@ template void visitor_adaptor::do_visit(const Ptr& ptr, const Fnc& fnc) const { using value_t = nlohmann::detail::value_t; - const json_with_visitor_t& json = *static_cast(this); + const json_with_visitor_t& json = *static_cast(this); // NOLINT(cppcoreguidelines-pro-type-static-cast-downcast) switch (json.type()) { case value_t::object: