Skip to content

Commit e4af94b

Browse files
[Github CI] workaround for broken clang on ubuntu runner until actions/runner-images#8659 get fixed
Signed-off-by: Christian Parpart <[email protected]>
1 parent 1eb3ea6 commit e4af94b

File tree

1 file changed

+24
-9
lines changed

1 file changed

+24
-9
lines changed

.github/workflows/build.yml

+24-9
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,22 @@ jobs:
2323

2424
editorconfig:
2525
name: "Check editorconfig"
26-
runs-on: ubuntu-20.04
26+
runs-on: ubuntu-22.04
2727
steps:
2828
- uses: actions/checkout@v2
2929
- uses: editorconfig-checker/action-editorconfig-checker@main
3030
- run: editorconfig-checker
3131

32-
ubuntu_2204:
32+
ubuntu:
3333
strategy:
3434
fail-fast: false
3535
matrix:
3636
cxx: [20]
3737
build_type: ["RelWithDebInfo"]
3838
compiler:
3939
[
40-
"g++-12",
41-
"clang++-14"
40+
"g++-11",
41+
"clang++-15"
4242
]
4343
name: "Ubuntu 22.04 (${{ matrix.compiler }}, C++${{ matrix.cxx }}, ${{matrix.build_type}})"
4444
runs-on: ubuntu-22.04
@@ -54,15 +54,30 @@ jobs:
5454
- name: "update APT database"
5555
run: sudo apt -q update
5656

57-
- name: Install Compilers
58-
run: sudo apt install -y g++-11 clang-14
57+
- name: Set up Clang
58+
uses: egor-tensin/setup-clang@v1
59+
with:
60+
version: 15
5961

6062
- name: "Download dependencies"
61-
run: sudo apt install cmake ninja-build catch2
63+
run: sudo apt install cmake ninja-build # catch2
64+
# workaround for broken clang on ubuntu runner until https://github.com/actions/runner-images/issues/8659 get fixed
65+
#- uses: mjp41/workaround8649@7929373c0fe5caf844d8115adccef39e3b5362e7
66+
- name: Install Compilers
67+
run: sudo apt install -y g++-12
6268
- name: "Cmake configure"
63-
run: cmake -S . -B build -G Ninja -D BOXED_CPP_TESTS=ON -D ENABLE_TIDY=ON -DPEDANTIC_COMPILER=ON -D CMAKE_CXX_FLAGS="-Wno-unknown-warning-option" -DCMAKE_CXX_COMPILER=${{ matrix.compiler }} -DCMAKE_CXX_STANDARD=${{ matrix.cxx }} -DCMAKE_BUILD_TYPE=${{matrix.build_type}}
64-
- name: "build "
69+
run: |
70+
cmake -S . -B build -G Ninja \
71+
-DBOXED_CPP_TESTS=OFF \
72+
-DENABLE_TIDY=ON \
73+
-DPEDANTIC_COMPILER=ON \
74+
-DCMAKE_CXX_FLAGS="-Wno-unknown-warning-option" \
75+
-DCMAKE_CXX_COMPILER=${{ matrix.compiler }} \
76+
-DCMAKE_CXX_STANDARD=${{ matrix.cxx }} \
77+
-DCMAKE_BUILD_TYPE=${{matrix.build_type}}
78+
- name: "build"
6579
run: cmake --build build --parallel 3
6680

6781
- name: "run test"
82+
if: ${{ false }} # disabled, because of Github runner image bug in compiler-vs-stdlib
6883
run: ./build/test-boxed-cpp

0 commit comments

Comments
 (0)