mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-02 13:53:07 +00:00
Testing forcing caching of local packages
This commit is contained in:
parent
3c3997b726
commit
47753e08d5
@ -17,6 +17,7 @@ jobs:
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install nightly toolchain
|
||||
id: rustc-toolchain
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
@ -24,7 +25,15 @@ jobs:
|
||||
override: true
|
||||
|
||||
- name: rust-cache
|
||||
uses: Swatinem/rust-cache@v2
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/bin/
|
||||
~/.cargo/registry/index/
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
target/
|
||||
key: rustc-test-${{ steps.rustc-toolchain.outputs.rustc_hash }}-cargo-${{ hashFiles('**/Cargo.toml') }}
|
||||
|
||||
- name: Run cargo test
|
||||
uses: actions-rs/cargo@v1
|
||||
@ -33,7 +42,7 @@ jobs:
|
||||
args: --all
|
||||
env:
|
||||
RUSTFLAGS: -Copt-level=3 -Cdebug-assertions -Coverflow-checks=y -Cdebuginfo=0 -Cprefer-dynamic=y
|
||||
CARGO_INCREMENTAL: 0
|
||||
CARGO_INCREMENTAL: 1
|
||||
|
||||
lints:
|
||||
name: Formatting and Clippy
|
||||
@ -44,6 +53,7 @@ jobs:
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install nightly toolchain
|
||||
id: rustc-toolchain
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
@ -52,17 +62,29 @@ jobs:
|
||||
components: rustfmt, clippy
|
||||
|
||||
- name: rust-cache
|
||||
uses: Swatinem/rust-cache@v2
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/bin/
|
||||
~/.cargo/registry/index/
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
target/
|
||||
key: rustc-lints-${{ steps.rustc-toolchain.outputs.rustc_hash }}-cargo-${{ hashFiles('**/Cargo.toml') }}
|
||||
|
||||
- name: Run cargo fmt
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: fmt
|
||||
args: --all -- --check
|
||||
env:
|
||||
CARGO_INCREMENTAL: 1
|
||||
|
||||
- name: Run cargo clippy
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: clippy
|
||||
args: --all-features --all-targets -- -D warnings -A incomplete-features
|
||||
env:
|
||||
CARGO_INCREMENTAL: 1
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user