Skip to content

Commit 946493a

Browse files
committed
ci(llvm): update llvm version
1 parent 7d23765 commit 946493a

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
os: [ubuntu-latest, macos-latest, windows-latest]
8585
php: ["8.0", "8.1", "8.2", "8.3", "8.4"]
8686
rust: [stable, nightly]
87-
clang: ["15", "17"]
87+
clang: ["18", "19"]
8888
phpts: [ts, nts]
8989
exclude:
9090
# ext-php-rs requires nightly Rust when on Windows.
@@ -96,11 +96,11 @@ jobs:
9696
- os: ubuntu-latest
9797
phpts: ts
9898
- os: macos-latest
99-
clang: "17"
99+
clang: "18"
100100
- os: ubuntu-latest
101-
clang: "15"
101+
clang: "19"
102102
- os: windows-latest
103-
clang: "15"
103+
clang: "18"
104104
env:
105105
CARGO_TERM_COLOR: always
106106
steps:
@@ -131,23 +131,20 @@ jobs:
131131
- name: Cache LLVM and Clang
132132
id: cache-llvm
133133
uses: actions/cache@v4
134-
# Macos build doesn't work with clang < 18. As a build for version 18 is not available, we skip the setup
135-
if: "!contains(matrix.os, 'windows') && !contains(matrix.os, 'macos')"
134+
if: "!contains(matrix.os, 'windows')"
136135
with:
137136
path: ${{ runner.temp }}/llvm-${{ matrix.clang }}
138137
key: ${{ matrix.os }}-llvm-${{ matrix.clang }}
139138
- name: Setup LLVM & Clang
140139
id: clang
141140
uses: KyleMayes/install-llvm-action@v2
142-
# Macos build doesn't work with clang < 18. As a build for version 18 is not available, we skip the setup
143-
if: "!contains(matrix.os, 'windows') && !contains(matrix.os, 'macos')"
141+
if: "!contains(matrix.os, 'windows')"
144142
with:
145143
version: ${{ matrix.clang }}
146144
directory: ${{ runner.temp }}/llvm-${{ matrix.clang }}
147145
cached: ${{ steps.cache-llvm.outputs.cache-hit }}
148146
- name: Configure Clang
149-
# Macos build doesn't work with clang < 18. As a build for version 18 is not available, we skip the setup
150-
if: "!contains(matrix.os, 'windows') && !contains(matrix.os, 'macos')"
147+
if: "!contains(matrix.os, 'windows')"
151148
run: |
152149
echo "LIBCLANG_PATH=${{ runner.temp }}/llvm-${{ matrix.clang }}/lib" >> $GITHUB_ENV
153150
echo "LLVM_VERSION=${{ steps.clang.outputs.version }}" >> $GITHUB_ENV

0 commit comments

Comments
 (0)