mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-05-25 09:29:33 +00:00
feat(ci): cache rust artifacts
This commit is contained in:
parent
b5cecdebc0
commit
adf0d241c8
30
.github/workflows/ci.yml
vendored
30
.github/workflows/ci.yml
vendored
@ -94,6 +94,12 @@ jobs:
|
|||||||
- name: Install active toolchain
|
- name: Install active toolchain
|
||||||
run: rustup install
|
run: rustup install
|
||||||
|
|
||||||
|
- name: Restore Rust cache
|
||||||
|
uses: Swatinem/rust-cache@v2
|
||||||
|
with:
|
||||||
|
shared-key: ci-rust-cache
|
||||||
|
save-if: ${{ github.ref == 'refs/heads/main' }}
|
||||||
|
|
||||||
- name: Lint workspace
|
- name: Lint workspace
|
||||||
env:
|
env:
|
||||||
RISC0_SKIP_BUILD: "1"
|
RISC0_SKIP_BUILD: "1"
|
||||||
@ -123,6 +129,12 @@ jobs:
|
|||||||
- name: Install active toolchain
|
- name: Install active toolchain
|
||||||
run: rustup install
|
run: rustup install
|
||||||
|
|
||||||
|
- name: Restore Rust cache
|
||||||
|
uses: Swatinem/rust-cache@v2
|
||||||
|
with:
|
||||||
|
shared-key: ci-rust-cache
|
||||||
|
save-if: ${{ github.ref == 'refs/heads/main' }}
|
||||||
|
|
||||||
- name: Install nextest
|
- name: Install nextest
|
||||||
run: cargo install --locked cargo-nextest
|
run: cargo install --locked cargo-nextest
|
||||||
|
|
||||||
@ -190,6 +202,12 @@ jobs:
|
|||||||
- name: Install active toolchain
|
- name: Install active toolchain
|
||||||
run: rustup install
|
run: rustup install
|
||||||
|
|
||||||
|
- name: Restore Rust cache
|
||||||
|
uses: Swatinem/rust-cache@v2
|
||||||
|
with:
|
||||||
|
shared-key: ci-rust-cache
|
||||||
|
save-if: ${{ github.ref == 'refs/heads/main' }}
|
||||||
|
|
||||||
- name: Install nextest
|
- name: Install nextest
|
||||||
run: cargo install --locked cargo-nextest
|
run: cargo install --locked cargo-nextest
|
||||||
|
|
||||||
@ -223,6 +241,12 @@ jobs:
|
|||||||
- name: Install active toolchain
|
- name: Install active toolchain
|
||||||
run: rustup install
|
run: rustup install
|
||||||
|
|
||||||
|
- name: Restore Rust cache
|
||||||
|
uses: Swatinem/rust-cache@v2
|
||||||
|
with:
|
||||||
|
shared-key: ci-rust-cache
|
||||||
|
save-if: ${{ github.ref == 'refs/heads/main' }}
|
||||||
|
|
||||||
- name: Test valid proof
|
- name: Test valid proof
|
||||||
env:
|
env:
|
||||||
RUST_LOG: "info"
|
RUST_LOG: "info"
|
||||||
@ -240,6 +264,12 @@ jobs:
|
|||||||
|
|
||||||
- uses: ./.github/actions/install-risc0
|
- uses: ./.github/actions/install-risc0
|
||||||
|
|
||||||
|
- name: Restore Rust cache
|
||||||
|
uses: Swatinem/rust-cache@v2
|
||||||
|
with:
|
||||||
|
shared-key: ci-rust-cache
|
||||||
|
save-if: ${{ github.ref == 'refs/heads/main' }}
|
||||||
|
|
||||||
- name: Install just
|
- name: Install just
|
||||||
run: cargo install --locked just
|
run: cargo install --locked just
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user