Fix errors finding Rust toolchain (#3802)

* switch to dtolnay/toolchain
* Add .dockerignore to avoid copying target/ into images
* update corrosion
This commit is contained in:
Dustin J. Mitchell 2025-03-06 06:59:04 -05:00 committed by GitHub
parent bcb3f820ab
commit 3c12c0dfd0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 48 additions and 56 deletions

View file

@ -6,16 +6,14 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
id: toolchain
- name: Cache cargo registry
uses: actions/cache@v4
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
- uses: actions-rs/toolchain@v1
with:
toolchain: "stable"
override: true
key: ${{ runner.os }}-cargo-registry-${{ steps.toolchain.outputs.cachekey }}-${{ hashFiles('**/Cargo.lock') }}
- name: Install uuid-dev
run: sudo apt install uuid-dev