Skip to content

Commit

Permalink
Cache cargo index (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
newpavlov committed Feb 21, 2022
1 parent f42aae7 commit 8ffb6ba
Show file tree
Hide file tree
Showing 10 changed files with 90 additions and 86 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/cbc.yaml
Expand Up @@ -28,7 +28,8 @@ jobs:
- thumbv7em-none-eabi
- wasm32-unknown-unknown
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- uses: RustCrypto/actions/cargo-cache@master
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
Expand All @@ -50,11 +51,12 @@ jobs:
- 1.56.0 # MSRV
- stable
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
profile: minimal
- run: cargo test
- run: cargo test --all-features
- uses: actions/checkout@v2
- uses: RustCrypto/actions/cargo-cache@master
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
profile: minimal
- run: cargo test
- run: cargo test --all-features
20 changes: 11 additions & 9 deletions .github/workflows/cfb-mode.yaml
Expand Up @@ -28,7 +28,8 @@ jobs:
- thumbv7em-none-eabi
- wasm32-unknown-unknown
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- uses: RustCrypto/actions/cargo-cache@master
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
Expand All @@ -50,11 +51,12 @@ jobs:
- 1.56.0 # MSRV
- stable
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
profile: minimal
- run: cargo test
- run: cargo test --all-features
- uses: actions/checkout@v2
- uses: RustCrypto/actions/cargo-cache@master
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
profile: minimal
- run: cargo test
- run: cargo test --all-features
20 changes: 11 additions & 9 deletions .github/workflows/cfb8.yaml
Expand Up @@ -28,7 +28,8 @@ jobs:
- thumbv7em-none-eabi
- wasm32-unknown-unknown
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- uses: RustCrypto/actions/cargo-cache@master
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
Expand All @@ -50,11 +51,12 @@ jobs:
- 1.56.0 # MSRV
- stable
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
profile: minimal
- run: cargo test
- run: cargo test --all-features
- uses: actions/checkout@v2
- uses: RustCrypto/actions/cargo-cache@master
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
profile: minimal
- run: cargo test
- run: cargo test --all-features
20 changes: 11 additions & 9 deletions .github/workflows/ctr.yaml
Expand Up @@ -28,7 +28,8 @@ jobs:
- thumbv7em-none-eabi
- wasm32-unknown-unknown
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- uses: RustCrypto/actions/cargo-cache@master
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
Expand All @@ -50,11 +51,12 @@ jobs:
- 1.56.0 # MSRV
- stable
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
profile: minimal
- run: cargo test
- run: cargo test --all-features
- uses: actions/checkout@v2
- uses: RustCrypto/actions/cargo-cache@master
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
profile: minimal
- run: cargo test
- run: cargo test --all-features
20 changes: 11 additions & 9 deletions .github/workflows/ige.yaml
Expand Up @@ -28,7 +28,8 @@ jobs:
- thumbv7em-none-eabi
- wasm32-unknown-unknown
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- uses: RustCrypto/actions/cargo-cache@master
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
Expand All @@ -50,11 +51,12 @@ jobs:
- 1.56.0 # MSRV
- stable
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
profile: minimal
- run: cargo test
- run: cargo test --all-features
- uses: actions/checkout@v2
- uses: RustCrypto/actions/cargo-cache@master
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
profile: minimal
- run: cargo test
- run: cargo test --all-features
20 changes: 11 additions & 9 deletions .github/workflows/ofb.yaml
Expand Up @@ -28,7 +28,8 @@ jobs:
- thumbv7em-none-eabi
- wasm32-unknown-unknown
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- uses: RustCrypto/actions/cargo-cache@master
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
Expand All @@ -50,11 +51,12 @@ jobs:
- 1.56.0 # MSRV
- stable
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
profile: minimal
- run: cargo test
- run: cargo test --all-features
- uses: actions/checkout@v2
- uses: RustCrypto/actions/cargo-cache@master
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
profile: minimal
- run: cargo test
- run: cargo test --all-features
20 changes: 11 additions & 9 deletions .github/workflows/pcbc.yaml
Expand Up @@ -28,7 +28,8 @@ jobs:
- thumbv7em-none-eabi
- wasm32-unknown-unknown
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- uses: RustCrypto/actions/cargo-cache@master
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
Expand All @@ -50,11 +51,12 @@ jobs:
- 1.56.0 # MSRV
- stable
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
profile: minimal
- run: cargo test
- run: cargo test --all-features
- uses: actions/checkout@v2
- uses: RustCrypto/actions/cargo-cache@master
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
profile: minimal
- run: cargo test
- run: cargo test --all-features
2 changes: 1 addition & 1 deletion .github/workflows/security-audit.yml
Expand Up @@ -13,7 +13,7 @@ jobs:
name: Security Audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Cache cargo bin
uses: actions/cache@v1
with:
Expand Down
30 changes: 10 additions & 20 deletions .github/workflows/workspace.yml
Expand Up @@ -13,20 +13,21 @@ jobs:
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.56.0 # MSRV
components: clippy
override: true
profile: minimal
- run: cargo clippy --all --all-features -- -D warnings
- uses: actions/checkout@v2
- uses: RustCrypto/actions/cargo-cache@master
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.56.0 # MSRV
components: clippy
override: true
profile: minimal
- run: cargo clippy --all --all-features -- -D warnings

rustfmt:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v1
uses: actions/checkout@v2

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
Expand All @@ -40,14 +41,3 @@ jobs:
with:
command: fmt
args: --all -- --check

benches:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
profile: minimal
override: true
- run: cargo build --all --benches
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8ffb6ba

Please sign in to comment.