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
|
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: |
|
||||||
|
8
.github/workflows/linux.yml
vendored
8
.github/workflows/linux.yml
vendored
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user