Skip to content

Commit dbf075c

Browse files
committed
Compile Rust ELFs in Disk-spill tests job
1 parent e9f0329 commit dbf075c

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/pr_main.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,22 @@ jobs:
162162
run: |
163163
make compile-programs-asm
164164
165+
- name: Cache compiled Rust ELF artifacts and build cache
166+
id: cache-rust-elfs
167+
uses: actions/cache@v4
168+
with:
169+
path: |
170+
executor/program_artifacts/rust
171+
executor/shared_target
172+
key: rust-elf-artifacts-${{ hashFiles('executor/programs/rust/**', 'executor/programs/riscv64im-lambda-vm-elf.json', 'syscalls/**', 'Makefile') }}
173+
restore-keys: |
174+
rust-elf-artifacts-
175+
176+
- name: Compile Rust programs to ELF
177+
if: steps.cache-rust-elfs.outputs.cache-hit != 'true'
178+
run: |
179+
make compile-programs-rust
180+
165181
- name: Run stark disk-spill tests
166182
run: |
167183
cargo test --release -p stark --features disk-spill disk_spill

0 commit comments

Comments
 (0)