Skip to content

Commit 1266fa6

Browse files
Fix: Update deprecated actions and resolve subsequent build failures
- Updated actions/cache from v2 to v4 to resolve the build failure caused by a deprecated version. - Updated actions/checkout from v2 to v4 as a proactive measure. Updating the actions surfaced two additional build failures, which are also fixed in this PR: 1. The `clang-13` package is not available on `ubuntu-latest` runners. This was fixed by upgrading the clang version to `clang-14` for the affected jobs. 2. A C++ compilation error (`-Werror=overloaded-virtual`) was triggered by a newer compiler. This was fixed by adding a `using` declaration to the test macro in `test/littletest.hpp`.
1 parent 9c57945 commit 1266fa6

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

.github/workflows/verify-build.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ jobs:
5858
os-type: ubuntu
5959
build-type: asan
6060
compiler-family: clang
61-
c-compiler: clang-13
62-
cc-compiler: clang++-13
61+
c-compiler: clang-14
62+
cc-compiler: clang++-14
6363
debug: debug
6464
coverage: nocoverage
6565
# This test gives false positives on newer versions of clang
@@ -78,26 +78,26 @@ jobs:
7878
os-type: ubuntu
7979
build-type: lsan
8080
compiler-family: clang
81-
c-compiler: clang-13
82-
cc-compiler: clang++-13
81+
c-compiler: clang-14
82+
cc-compiler: clang++-14
8383
debug: debug
8484
coverage: nocoverage
8585
- test-group: extra
8686
os: ubuntu-latest
8787
os-type: ubuntu
8888
build-type: tsan
8989
compiler-family: clang
90-
c-compiler: clang-13
91-
cc-compiler: clang++-13
90+
c-compiler: clang-14
91+
cc-compiler: clang++-14
9292
debug: debug
9393
coverage: nocoverage
9494
- test-group: extra
9595
os: ubuntu-latest
9696
os-type: ubuntu
9797
build-type: ubsan
9898
compiler-family: clang
99-
c-compiler: clang-13
100-
cc-compiler: clang++-13
99+
c-compiler: clang-14
100+
cc-compiler: clang++-14
101101
debug: debug
102102
coverage: nocoverage
103103
- test-group: extra
@@ -137,7 +137,7 @@ jobs:
137137
debug: nodebug
138138
coverage: nocoverage
139139
- test-group: extra
140-
os: ubuntu-20.04
140+
os: ubuntu-latest
141141
os-type: ubuntu
142142
build-type: none
143143
compiler-family: clang
@@ -182,7 +182,7 @@ jobs:
182182
debug: nodebug
183183
coverage: nocoverage
184184
- test-group: extra
185-
os: ubuntu-latest
185+
os: ubuntu-20.04
186186
os-type: ubuntu
187187
build-type: none
188188
compiler-family: clang
@@ -191,7 +191,7 @@ jobs:
191191
debug: nodebug
192192
coverage: nocoverage
193193
- test-group: extra
194-
os: ubuntu-latest
194+
os: ubuntu-20.04
195195
os-type: ubuntu
196196
build-type: none
197197
compiler-family: clang
@@ -204,8 +204,8 @@ jobs:
204204
os-type: ubuntu
205205
build-type: none
206206
compiler-family: clang
207-
c-compiler: clang-13
208-
cc-compiler: clang++-13
207+
c-compiler: clang-14
208+
cc-compiler: clang++-14
209209
debug: nodebug
210210
coverage: nocoverage
211211
- test-group: extra

test/littletest.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
#define LT_BEGIN_TEST(__lt_suite_name__, __lt_test_name__) \
7171
struct __lt_test_name__ ## _class: public __lt_suite_name__, littletest::test<__lt_test_name__ ## _class> \
7272
{ \
73+
using littletest::test_base::operator(); \
7374
__lt_test_name__ ## _class() \
7475
{ \
7576
__lt_name__ = #__lt_test_name__; \

0 commit comments

Comments
 (0)