Skip to content

Commit 77addee

Browse files
committed
Add Clang-21 to GHA
1 parent 2a0f5f0 commit 77addee

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/unit-tests.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ jobs:
107107
# Use default cmake
108108
- { compiler: gcc-14, os: ubuntu-24.04, type: Debug }
109109
- { compiler: clang-18, os: ubuntu-24.04, type: Debug, externalSanitizer: true }
110+
- { compiler: clang-21, os: ubuntu-latest, type: Debug, init_llvm: true}
110111

111112
runs-on: ${{matrix.os}}
112113

@@ -146,7 +147,7 @@ jobs:
146147
if: matrix.coverage
147148
with:
148149
submodules: true
149-
fetch-depth: 0 # Faster checkout
150+
fetch-depth: 0 # Full history
150151

151152
- name: Cache dependencies
152153
uses: actions/cache@v4
@@ -172,6 +173,10 @@ jobs:
172173
else
173174
compiler=${{matrix.compiler}}
174175
compiler=${compiler/gcc-/g++-}
176+
if [[ "${{matrix.init_llvm}}" == "true" ]]; then
177+
clang_version=${compiler#clang-*}
178+
wget -qO- "https://apt.llvm.org/llvm.sh" | bash -s -- "${clang_version}"
179+
fi
175180
sudo apt update
176181
sudo apt install gettext libsdl2-dev libsdl2-mixer-dev libcurl4-openssl-dev libbz2-dev libminiupnpc-dev liblua5.2-dev $compiler
177182
fi

0 commit comments

Comments
 (0)