3
0
Fork 0
mirror of https://github.com/Swatinem/rust-cache synced 2025-08-26 14:46:05 +00:00

Update workflow definitions

- Use rust `--no-self-update` flag instead of separate command.
- Add an explicit test for the `git` registry, as the sparse registry is now the default.
This commit is contained in:
Arpad Borsos 2023-07-31 15:31:10 +02:00
parent dd05243424
commit 1e604afb09
No known key found for this signature in database
GPG key ID: FC7BCA77824B3298
6 changed files with 7 additions and 32 deletions

31
.github/workflows/git-registry.yml vendored Normal file
View file

@ -0,0 +1,31 @@
name: sparse-registry
on: [push, pull_request]
jobs:
sparse-registry:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
name: Test `cargo check/test` with sparse registry on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
env:
CARGO_TERM_COLOR: always
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: git
steps:
- uses: actions/checkout@v3
- run: rustup toolchain install stable --profile minimal --no-self-update
- uses: ./
with:
workspaces: tests
- run: |
cargo check
cargo test
working-directory: tests