Skip to content

Commit 338794f

Browse files
committed
Github action is fickle with the pattern matching
1 parent d94d703 commit 338794f

File tree

2 files changed

+4
-14
lines changed

2 files changed

+4
-14
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,7 @@ jobs:
4646
runs-on: ubuntu-latest
4747
steps:
4848
- uses: actions/checkout@v4
49-
- uses: actions-rs/toolchain@v1
50-
id: rust-toolchain
51-
with:
52-
profile: minimal
53-
toolchain: stable
54-
override: true
49+
- uses: dtolnay/rust-toolchain@nightly
5550

5651
- name: Generate license file
5752
run: uv run python ./dev/create_license.py
@@ -76,9 +71,7 @@ jobs:
7671
with:
7772
python-version: ${{ matrix.python-version }}
7873

79-
- uses: actions-rs/toolchain@v1
80-
with:
81-
toolchain: stable
74+
- uses: dtolnay/rust-toolchain@nightly
8275

8376
- run: rm LICENSE.txt
8477
- name: Download LICENSE.txt

.github/workflows/test.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,8 @@ jobs:
4343
- uses: actions/checkout@v4
4444

4545
- name: Setup Rust Toolchain
46-
uses: actions-rs/toolchain@v1
46+
uses: dtolnay/rust-toolchain@ceb8b84
4747
id: rust-toolchain
48-
with:
49-
toolchain: ${{ matrix.toolchain }}
50-
override: true
5148

5249
- name: Install Protoc
5350
uses: arduino/setup-protoc@v3
@@ -64,7 +61,7 @@ jobs:
6461
uses: actions/cache@v4
6562
with:
6663
path: ~/.cargo
67-
key: cargo-cache-${{ steps.rust-toolchain.outputs.rustc_hash }}-${{ hashFiles('Cargo.lock') }}
64+
key: cargo-cache-${{ steps.rust-toolchain.outputs.cachekey }}-${{ hashFiles('Cargo.lock') }}
6865

6966
- name: Check Formatting
7067
if: ${{ matrix.python-version == '3.10' && matrix.toolchain == 'stable' }}

0 commit comments

Comments
 (0)