@@ -189,10 +189,13 @@ jobs:
189189 name : Test archives with a runner (destination)
190190 strategy :
191191 matrix :
192- os :
193- - ubuntu-24.04
194- - windows-latest
195- runs-on : ${{ matrix.os }}
192+ data :
193+ - os : ubuntu-24.04
194+ # The artifact name is set by the upload job, which is ubuntu-latest.
195+ artifact-name : ubuntu-latest
196+ - os : windows-latest
197+ artifact-name : windows-latest
198+ runs-on : ${{ matrix.data.os }}
196199 needs :
197200 - test-archive-target-runner
198201 - build
@@ -201,15 +204,15 @@ jobs:
201204 - name : Download nextest binary
202205 uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
203206 with :
204- name : cargo-nextest-${{ matrix.os }}-stable
207+ name : cargo-nextest-${{ matrix.data.artifact-name }}-stable
205208 path : nextest-bin
206209 - name : Download archive
207210 uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
208211 with :
209212 name : fixture-archive
210213 path : fixture-archive
211214 - name : Run test fixtures (host)
212- if : ${{ matrix.os == 'ubuntu-latest' }}
215+ if : ${{ matrix.data.artifact-name == 'ubuntu-latest' }}
213216 env :
214217 CARGO_NEXTEST : nextest-bin/cargo-nextest
215218 run : |
@@ -219,7 +222,7 @@ jobs:
219222 --workspace-remap $GITHUB_WORKSPACE/fixtures/nextest-tests \
220223 -E 'platform(host)'
221224 - name : Run test fixtures (target)
222- if : ${{ matrix.os == 'windows-latest' }}
225+ if : ${{ matrix.data.artifact-name == 'windows-latest' }}
223226 shell : bash
224227 env :
225228 CARGO_NEXTEST : nextest-bin/cargo-nextest.exe
0 commit comments