@@ -85,22 +85,28 @@ jobs:
8585 matrix :
8686 os : [ubuntu-latest, macos-latest, windows-latest]
8787 php : ["8.0", "8.1", "8.2", "8.3", "8.4"]
88- rust : [stable]
88+ rust : [stable, nightly ]
8989 clang : ["15", "17"]
9090 phpts : [ts, nts]
91- include :
92- - os : ubuntu-latest
93- rust : nightly
94- clang : " 15"
95- phpts : nts
96- php : " 8.4"
9791 exclude :
9892 - os : macos-latest
9993 clang : " 17"
10094 - os : ubuntu-latest
10195 clang : " 15"
96+ - os : macos-latest
97+ rust : [nightly]
98+ - os : ubuntu-latest
99+ rust : [nightly]
102100 - os : windows-latest
103101 clang : " 15"
102+ - os : windows-latest
103+ rust : [stable]
104+ include :
105+ - os : ubuntu-latest
106+ rust : nightly
107+ clang : " 15"
108+ phpts : nts
109+ php : " 8.4"
104110 env :
105111 CARGO_TERM_COLOR : always
106112 steps :
@@ -196,39 +202,6 @@ jobs:
196202 toolchain : stable
197203 components : rustfmt, clippy
198204 - run : rustup show
199- - name : Cache cargo dependencies
200- uses : Swatinem/rust-cache@v2
201- # Uncomment the following if statement if caching nightly deps
202- # ends up causing too much cache invalidation.
203- # if: matrix.rust == 'stable'
204- with :
205- # increment this manually to force cache eviction
206- prefix-key : ${{ env.RUST_CACHE_PREFIX }}
207- # LLVM & Clang
208- - name : Cache LLVM and Clang
209- id : cache-llvm
210- uses : actions/cache@v4
211- # Macos build doesn't work with clang < 18. As a build for version 18 is not available, we skip the setup
212- if : " !contains(matrix.os, 'windows') && !contains(matrix.os, 'macos')"
213- with :
214- path : ${{ runner.temp }}/llvm-${{ matrix.clang }}
215- key : ${{ matrix.os }}-llvm-${{ matrix.clang }}
216- - name : Setup LLVM & Clang
217- id : clang
218- uses : KyleMayes/install-llvm-action@v2
219- # Macos build doesn't work with clang < 18. As a build for version 18 is not available, we skip the setup
220- if : " !contains(matrix.os, 'windows') && !contains(matrix.os, 'macos')"
221- with :
222- version : ${{ matrix.clang }}
223- directory : ${{ runner.temp }}/llvm-${{ matrix.clang }}
224- cached : ${{ steps.cache-llvm.outputs.cache-hit }}
225- - name : Configure Clang
226- # Macos build doesn't work with clang < 18. As a build for version 18 is not available, we skip the setup
227- if : " !contains(matrix.os, 'windows') && !contains(matrix.os, 'macos')"
228- run : |
229- echo "LIBCLANG_PATH=${{ runner.temp }}/llvm-${{ matrix.clang }}/lib" >> $GITHUB_ENV
230- echo "LLVM_VERSION=${{ steps.clang.outputs.version }}" >> $GITHUB_ENV
231- echo "LLVM_CONFIG_PATH=${{ runner.temp }}/llvm-${{ matrix.clang }}/bin/llvm-config" >> $GITHUB_ENV
232205 - name : Install cargo-hack
233206 uses : taiki-e/install-action@v2
234207 with :
@@ -260,7 +233,6 @@ jobs:
260233 with :
261234 toolchain : ${{ matrix.rust }}
262235 components : rustfmt, clippy
263- - run : rustup show
264236 - name : Install cargo-hack
265237 uses : taiki-e/install-action@v2
266238 with :
0 commit comments