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:
parent
dd05243424
commit
1e604afb09
6 changed files with 7 additions and 32 deletions
31
.github/workflows/git-registry.yml
vendored
Normal file
31
.github/workflows/git-registry.yml
vendored
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue