Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ jobs:
- name: Setup image (Linux)
run: ./.github/scripts/provision-linux-build.sh

# rust-cache hashes all installed toolchains; the runner image's `stable`
# drifts as the image updates, which moves the cache key and causes misses.
# Remove it so only the rust-toolchain.toml-pinned version remains.
- name: Remove the runner's bundled Rust toolchain
run: rustup toolchain remove stable 2>/dev/null || true

- uses: actions-rust-lang/setup-rust-toolchain@150fca883cd4034361b621bd4e6a9d34e5143606 # v1.15.4
with:
cache-shared-key: ${{ runner.os }}-checks
Expand All @@ -62,6 +68,12 @@ jobs:
- name: Setup image (Linux)
run: ./.github/scripts/provision-linux-build.sh

# rust-cache hashes all installed toolchains; the runner image's `stable`
# drifts as the image updates, which moves the cache key and causes misses.
# Remove it so only the rust-toolchain.toml-pinned version remains.
- name: Remove the runner's bundled Rust toolchain
run: rustup toolchain remove stable 2>/dev/null || true

- uses: actions-rust-lang/setup-rust-toolchain@150fca883cd4034361b621bd4e6a9d34e5143606 # v1.15.4
with:
cache-shared-key: ${{ runner.os }}-checks
Expand All @@ -84,6 +96,12 @@ jobs:
- name: Setup image (Linux)
run: ./.github/scripts/provision-linux-build.sh

# rust-cache hashes all installed toolchains; the runner image's `stable`
# drifts as the image updates, which moves the cache key and causes misses.
# Remove it so only the rust-toolchain.toml-pinned version remains.
- name: Remove the runner's bundled Rust toolchain
run: rustup toolchain remove stable 2>/dev/null || true

- uses: actions-rust-lang/setup-rust-toolchain@150fca883cd4034361b621bd4e6a9d34e5143606 # v1.15.4
with:
cache-shared-key: ${{ runner.os }}-checks
Expand Down Expand Up @@ -132,6 +150,12 @@ jobs:
- name: Setup image (Linux)
run: ./.github/scripts/provision-linux-build.sh

# rust-cache hashes all installed toolchains; the runner image's `stable`
# drifts as the image updates, which moves the cache key and causes misses.
# Remove it so only the rust-toolchain.toml-pinned version remains.
- name: Remove the runner's bundled Rust toolchain
run: rustup toolchain remove stable 2>/dev/null || true

- uses: actions-rust-lang/setup-rust-toolchain@150fca883cd4034361b621bd4e6a9d34e5143606 # v1.15.4
with:
cache-shared-key: ${{ runner.os }}-checks
Expand Down Expand Up @@ -168,6 +192,12 @@ jobs:
- name: Setup image (Linux)
run: ./.github/scripts/provision-linux-build.sh

# rust-cache hashes all installed toolchains; the runner image's `stable`
# drifts as the image updates, which moves the cache key and causes misses.
# Remove it so only the rust-toolchain.toml-pinned version remains.
- name: Remove the runner's bundled Rust toolchain
run: rustup toolchain remove stable 2>/dev/null || true

- uses: actions-rust-lang/setup-rust-toolchain@150fca883cd4034361b621bd4e6a9d34e5143606 # v1.15.4
with:
cache-shared-key: ${{ runner.os }}-checks
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ jobs:
if: ${{ contains(matrix.os, 'ubuntu') }}
run: ./.github/scripts/provision-linux-build.sh

# rust-cache hashes all installed toolchains; the runner image's `stable`
# drifts as the image updates, which moves the cache key and causes misses.
# Remove it so only the rust-toolchain.toml-pinned version remains.
- name: Remove the runner's bundled Rust toolchain
run: rustup toolchain remove stable 2>/dev/null || true

- uses: actions-rust-lang/setup-rust-toolchain@150fca883cd4034361b621bd4e6a9d34e5143606 # v1.15.4
with:
cache-shared-key: ${{ runner.os }}-test
Expand Down Expand Up @@ -131,6 +137,12 @@ jobs:
"$env:USERPROFILE\.cargo", `
"$env:USERPROFILE\.rustup" -ErrorAction SilentlyContinue

# rust-cache hashes all installed toolchains; the runner image's `stable`
# drifts as the image updates, which moves the cache key and causes misses.
# Remove it so only the rust-toolchain.toml-pinned version remains.
- name: Remove the runner's bundled Rust toolchain
run: rustup toolchain remove stable 2>/dev/null || true

- uses: actions-rust-lang/setup-rust-toolchain@150fca883cd4034361b621bd4e6a9d34e5143606 # v1.15.4
with:
cache-shared-key: ${{ runner.os }}-test
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/validate-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ jobs:
if: ${{ contains(matrix.os, 'ubuntu') }}
run: ./.github/scripts/provision-linux-build.sh

# rust-cache hashes all installed toolchains; the runner image's `stable`
# drifts as the image updates, which moves the cache key and causes misses.
# Remove it so only the rust-toolchain.toml-pinned version remains.
- name: Remove the runner's bundled Rust toolchain
run: rustup toolchain remove stable 2>/dev/null || true

- uses: actions-rust-lang/setup-rust-toolchain@150fca883cd4034361b621bd4e6a9d34e5143606 # v1.15.4
with:
cache-shared-key: ${{ runner.os }}-validate
Expand Down
Loading