Skip to content

Fix use of rust cache on CI #2169

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/cairo_1_programs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
steps:
- name: Install Rust toolchain
uses: dtolnay/[email protected]
- name: Set up Cargo cache
uses: Swatinem/rust-cache@v2
- name: Checkout
uses: actions/checkout@v4
- name: Set up Cargo cache
uses: Swatinem/rust-cache@v2
- name: install corelib
run: cd cairo1-run/ && make deps
- name: Run tests
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/hint_accountant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
steps:
- name: Install Rust toolchain
uses: dtolnay/[email protected]
- name: Set up Cargo cache
uses: Swatinem/rust-cache@v2
- name: Checkout
uses: actions/checkout@v4
- name: Set up Cargo cache
uses: Swatinem/rust-cache@v2
- name: Check Build
run: cargo build -p hint_accountant
- name: Clone cairo-lang repo
Expand Down
36 changes: 15 additions & 21 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,10 @@ jobs:
uses: dtolnay/[email protected]
with:
components: rustfmt, clippy
- name: Set up cargo cache
uses: Swatinem/rust-cache@v2
- name: Checkout
uses: actions/checkout@v4
- name: Set up cargo cache
uses: Swatinem/rust-cache@v2

- uses: actions/download-artifact@master
with:
Expand Down Expand Up @@ -203,6 +203,9 @@ jobs:
with:
targets: wasm32-unknown-unknown

- name: Checkout
uses: actions/checkout@v4

- name: Set up cargo cache
uses: Swatinem/rust-cache@v2
with:
Expand All @@ -213,9 +216,6 @@ jobs:
with:
tool: cargo-all-features

- name: Checkout
uses: actions/checkout@v4

- uses: actions/download-artifact@master
with:
name: proof_programs
Expand Down Expand Up @@ -249,6 +249,9 @@ jobs:
with:
targets: wasm32-unknown-unknown

- name: Checkout
uses: actions/checkout@v4

- name: Set up cargo cache
uses: Swatinem/rust-cache@v2
with:
Expand All @@ -259,9 +262,6 @@ jobs:
with:
tool: cargo-all-features

- name: Checkout
uses: actions/checkout@v4

- name: Download proof programs symlinks
uses: actions/download-artifact@master
with:
Expand Down Expand Up @@ -289,14 +289,14 @@ jobs:
with:
targets: wasm32-unknown-unknown

- name: Checkout
uses: actions/checkout@v4

- name: Set up cargo cache
uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true

- name: Checkout
uses: actions/checkout@v4

- name: Download proof programs symlinks
uses: actions/download-artifact@master
with:
Expand Down Expand Up @@ -330,10 +330,10 @@ jobs:
uses: dtolnay/[email protected]
with:
components: llvm-tools-preview
- name: Set up cargo cache
uses: Swatinem/rust-cache@v2
- name: Checkout
uses: actions/checkout@v4
- name: Set up cargo cache
uses: Swatinem/rust-cache@v2

- uses: actions/download-artifact@master
with:
Expand Down Expand Up @@ -394,10 +394,10 @@ jobs:
steps:
- name: Install Rust
uses: dtolnay/[email protected]
- name: Set up cargo cache
uses: Swatinem/rust-cache@v2
- name: Checkout
uses: actions/checkout@v4
- name: Set up cargo cache
uses: Swatinem/rust-cache@v2
- name: Build
run: cargo b --release -p cairo-vm-cli
# We don't read from cache because it should always miss
Expand Down Expand Up @@ -484,12 +484,6 @@ jobs:
- program-target: cairo_test_programs
programs-dir: cairo_programs
extra-args: '--cairo_pie_output {program}.rs.pie.zip'
- program-target: cairo_stwo_exclusive_programs
programs-dir: cairo_programs/stwo_exclusive_programs
extra-args: '--cairo_pie_output {program}.rs.pie.zip'
- program-target: cairo_stwo_exclusive_programs_proof_mode
programs-dir: cairo_programs/stwo_exclusive_programs
extra-args: '--proof_mode --air_public_input {program}.rs.air_public_input --air_private_input {program}.rs.air_private_input '
name: Compute memory and execution traces with cairo-vm
needs: [ build-programs, build-release ]
runs-on: ubuntu-24.04
Expand Down
Loading