1
0
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:
Rob Ede 2023-03-14 03:24:17 +00:00
parent 8ccdfbb024
commit b686b68ae6
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
2 changed files with 12 additions and 4 deletions

View File

@ -22,15 +22,19 @@ jobs:
name: clippy check name: clippy check
runs-on: ubuntu-latest runs-on: ubuntu-latest
env:
CI: 1
CARGO_INCREMENTAL: false
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable - uses: dtolnay/rust-toolchain@stable
with: { components: clippy } with: { components: clippy }
- run: cargo generate-lockfile
- name: Cache Dependencies - name: Cache Dependencies
uses: Swatinem/rust-cache@v2.2.0 uses: Swatinem/rust-cache@v2.2.1
# - name: Create test DBs # - name: Create test DBs
# run: | # run: |

View File

@ -18,7 +18,8 @@ jobs:
env: env:
CI: 1 CI: 1
CARGO_UNSTABLE_SPARSE_REGISTRY: true CARGO_INCREMENTAL: false
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@ -29,7 +30,7 @@ jobs:
rustup override set ${{ matrix.version }} rustup override set ${{ matrix.version }}
- name: Cache Dependencies - name: Cache Dependencies
uses: Swatinem/rust-cache@v2.2.0 uses: Swatinem/rust-cache@v2.2.1
- name: Install DB CLI tools - name: Install DB CLI tools
run: | run: |
@ -67,3 +68,6 @@ jobs:
chmod a+rwx test.db chmod a+rwx test.db
cargo test -p=diesel-example --no-fail-fast -- --nocapture cargo test -p=diesel-example --no-fail-fast -- --nocapture
timeout-minutes: 10 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