Skip to content

Commit 649d7a2

Browse files
authored
Add experimental workflow for Clang 20 (#60, thanks @striezel)
1 parent 2efc062 commit 649d7a2

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/ci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,43 @@ jobs:
8080
working-directory: build
8181
run: ctest --output-on-failure -j 4
8282

83+
clang_in_container:
84+
strategy:
85+
fail-fast: false
86+
matrix:
87+
include:
88+
- version: 20
89+
image: 'ubuntu:25.04'
90+
91+
runs-on: ubuntu-latest
92+
container: ${{ matrix.image }}
93+
94+
steps:
95+
- uses: actions/checkout@v4
96+
97+
- name: Install Clang ${{ matrix.version }}
98+
run: |
99+
export DEBIAN_FRONTEND=noninteractive
100+
apt-get update && apt-get upgrade -y
101+
apt-get install -y clang-${{ matrix.version }} cmake
102+
103+
- name: Configure tests
104+
env:
105+
CXX: clang++-${{ matrix.version }}
106+
run: cmake -S . -B build
107+
-D CMAKE_CXX_COMPILER=clang++-${{ matrix.version }}
108+
-D CMAKE_BUILD_TYPE:STRING=Release
109+
-D ${{ env.PROJECT }}_OPT_SELECT_NONSTD=ON
110+
-D ${{ env.PROJECT }}_OPT_BUILD_TESTS=ON
111+
-D ${{ env.PROJECT }}_OPT_BUILD_EXAMPLES=OFF
112+
113+
- name: Build tests
114+
run: cmake --build build -j 4
115+
116+
- name: Run tests
117+
working-directory: build
118+
run: ctest --output-on-failure -j 4
119+
83120
msvc:
84121
strategy:
85122
fail-fast: false

0 commit comments

Comments
 (0)