Skip to content

Commit 5d931c5

Browse files
Fix failing CI checks (#4215)
1 parent 6eab7a2 commit 5d931c5

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/ubuntu.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
run: apt-get update ; apt-get install -y git unzip
2626
- uses: actions/checkout@v3
2727
- name: Get latest CMake and ninja
28-
uses: lukka/get-cmake@latest
28+
uses: lukka/get-cmake@v3.27.7
2929
- name: Run CMake
3030
run: cmake -S . -B build -DJSON_CI=On
3131
- name: Build
@@ -62,7 +62,7 @@ jobs:
6262
steps:
6363
- uses: actions/checkout@v3
6464
- name: Get latest CMake and ninja
65-
uses: lukka/get-cmake@latest
65+
uses: lukka/get-cmake@v3.27.7
6666
- name: Run CMake
6767
run: cmake -S . -B build -DJSON_CI=On
6868
- name: Build
@@ -79,7 +79,7 @@ jobs:
7979
run: apt-get update ; apt-get install -y git clang-tools unzip
8080
- uses: actions/checkout@v3
8181
- name: Get latest CMake and ninja
82-
uses: lukka/get-cmake@latest
82+
uses: lukka/get-cmake@v3.27.7
8383
- name: Run CMake
8484
run: cmake -S . -B build -DJSON_CI=On
8585
- name: Build
@@ -96,7 +96,7 @@ jobs:
9696
run: apt-get update ; apt-get install -y build-essential unzip wget git
9797
- uses: actions/checkout@v3
9898
- name: Get latest CMake and ninja
99-
uses: lukka/get-cmake@latest
99+
uses: lukka/get-cmake@v3.27.7
100100
- name: Run CMake
101101
run: cmake -S . -B build -DJSON_CI=On
102102
- name: Build
@@ -134,7 +134,7 @@ jobs:
134134
steps:
135135
- uses: actions/checkout@v3
136136
- name: Get latest CMake and ninja
137-
uses: lukka/get-cmake@latest
137+
uses: lukka/get-cmake@v3.27.7
138138
- name: Run CMake
139139
run: cmake -S . -B build -DJSON_CI=On
140140
- name: Build
@@ -151,7 +151,7 @@ jobs:
151151
run: apt-get update ; apt-get install -y unzip git
152152
- uses: actions/checkout@v3
153153
- name: Get latest CMake and ninja
154-
uses: lukka/get-cmake@latest
154+
uses: lukka/get-cmake@v3.27.7
155155
- name: Set env FORCE_STDCPPFS_FLAG for clang 7 / 8 / 9 / 10
156156
run: echo "JSON_FORCED_GLOBAL_COMPILE_OPTIONS=-DJSON_HAS_FILESYSTEM=0;-DJSON_HAS_EXPERIMENTAL_FILESYSTEM=0" >> "$GITHUB_ENV"
157157
if: ${{ matrix.compiler == '7' || matrix.compiler == '8' || matrix.compiler == '9' || matrix.compiler == '10' }}
@@ -197,7 +197,7 @@ jobs:
197197
run: apt-get update ; apt-get install -y git unzip
198198
- uses: actions/checkout@v3
199199
- name: Get latest CMake and ninja
200-
uses: lukka/get-cmake@latest
200+
uses: lukka/get-cmake@v3.27.7
201201
- name: Run CMake
202202
run: cmake -S . -B build -DJSON_CI=On
203203
- name: Build

tests/src/unit-custom-base-class.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ template <class Ptr, class Fnc>
239239
void visitor_adaptor::do_visit(const Ptr& ptr, const Fnc& fnc) const
240240
{
241241
using value_t = nlohmann::detail::value_t;
242-
const json_with_visitor_t& json = *static_cast<const json_with_visitor_t*>(this);
242+
const json_with_visitor_t& json = *static_cast<const json_with_visitor_t*>(this); // NOLINT(cppcoreguidelines-pro-type-static-cast-downcast)
243243
switch (json.type())
244244
{
245245
case value_t::object:

0 commit comments

Comments
 (0)