mirror of
https://github.com/actix/examples
synced 2024-11-27 16:02:57 +01:00
use sparse registry in CI
This commit is contained in:
parent
8ccdfbb024
commit
b686b68ae6
8
.github/workflows/clippy-fmt.yml
vendored
8
.github/workflows/clippy-fmt.yml
vendored
@ -22,15 +22,19 @@ jobs:
|
||||
name: clippy check
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
env:
|
||||
CI: 1
|
||||
CARGO_INCREMENTAL: false
|
||||
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
with: { components: clippy }
|
||||
|
||||
- run: cargo generate-lockfile
|
||||
- name: Cache Dependencies
|
||||
uses: Swatinem/rust-cache@v2.2.0
|
||||
uses: Swatinem/rust-cache@v2.2.1
|
||||
|
||||
# - name: Create test DBs
|
||||
# run: |
|
||||
|
8
.github/workflows/linux.yml
vendored
8
.github/workflows/linux.yml
vendored
@ -18,7 +18,8 @@ jobs:
|
||||
|
||||
env:
|
||||
CI: 1
|
||||
CARGO_UNSTABLE_SPARSE_REGISTRY: true
|
||||
CARGO_INCREMENTAL: false
|
||||
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
@ -29,7 +30,7 @@ jobs:
|
||||
rustup override set ${{ matrix.version }}
|
||||
|
||||
- name: Cache Dependencies
|
||||
uses: Swatinem/rust-cache@v2.2.0
|
||||
uses: Swatinem/rust-cache@v2.2.1
|
||||
|
||||
- name: Install DB CLI tools
|
||||
run: |
|
||||
@ -67,3 +68,6 @@ jobs:
|
||||
chmod a+rwx test.db
|
||||
cargo test -p=diesel-example --no-fail-fast -- --nocapture
|
||||
timeout-minutes: 10
|
||||
|
||||
- name: Clear the cargo caches
|
||||
run: cargo install cargo-cache --version=0.8.3 --no-default-features --features=ci-autoclean && cargo-cache
|
||||
|
Loading…
Reference in New Issue
Block a user