Skip to content

Commit 57c3224

Browse files
committed
ci: Work around not being able to use matrix variables inside uses
1 parent 4a5a029 commit 57c3224

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,18 @@ jobs:
173173
with:
174174
repo-token: ${{ secrets.GITHUB_TOKEN }}
175175

176+
# Can't use `${{ matrix.* }}` inside uses
176177
- name: Install Rust
177-
uses: dtolnay/rust-toolchain@${{ matrix.rust }}
178+
if: matrix.rust == 'stable'
179+
uses: dtolnay/rust-toolchain@stable
180+
181+
- name: Install Rust
182+
if: matrix.rust == 'beta'
183+
uses: dtolnay/rust-toolchain@beta
184+
185+
- name: Install Rust
186+
if: matrix.rust == 'nightly'
187+
uses: dtolnay/rust-toolchain@nightly
178188

179189
- name: Load cache
180190
uses: Swatinem/rust-cache@v2

0 commit comments

Comments
 (0)