Skip to content

Commit f651168

Browse files
committed
Update cache strategy, simplify further
1 parent 06a000f commit f651168

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,17 @@ jobs:
6565
~/.cargo/registry/cache/
6666
~/.cargo/git/db/
6767
athena/target/
68-
key: ${{ matrix.os }}-athenabuild-${{ hashFiles('athena/**/Cargo.lock') }}
68+
key: ${{ matrix.os }}-athenabuild-${{ hashFiles('athena/**/Cargo.toml') }}
6969

7070
- uses: actions/cache@v4
7171
name: Cache Rust toolchain
7272
with:
7373
path: |
74-
toolchain/rust/
74+
toolchain/rust/build
75+
toolchain/rust/library
76+
toolchain/rust/src/doc
77+
toolchain/rust/src/llvm-project
78+
toolchain/rust/src/tools
7579
key: ${{ matrix.os }}-rusttoolchain-${{ env.RUST_COMMIT }}
7680

7781
- name: Build

build.sh

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,14 @@ need_cmd clang++
1313
touch /tmp/riscv32em-athena-zkvm-elf.json
1414
export RUST_TARGET_PATH="/tmp"
1515

16-
# Set environment variables to override compiler flags
17-
#export CC_riscv32em_athena_zkvm_elf="clang"
18-
#export CXX_riscv32em_athena_zkvm_elf="clang++"
19-
2016
# Explicitly set CFLAGS without the problematic flags
2117
export CFLAGS_riscv32em_athena_zkvm_elf="-ffunction-sections -fdata-sections -fPIC -target riscv32-unknown-elf"
22-
#export CXXFLAGS_riscv32em_athena_zkvm_elf="$CFLAGS_riscv32em_athena_zkvm_elf"
2318

2419
# Set Rust flags
2520
export CARGO_TARGET_RISCV32EM_ATHENA_ZKVM_ELF_RUSTFLAGS="-Cpasses=loweratomic"
26-
# export CARGO_TARGET_RISCV32EM_ATHENA_ZKVM_ELF_RUSTFLAGS="-Cpasses=loweratomic -Clink-arg=-march=rv32em -Clink-arg=-mabi=ilp32e"
27-
28-
# Override the default target for compiler-rt
29-
# export COMPILER_RT_DEFAULT_TARGET_TRIPLE="riscv32-unknown-elf"
3021

3122
# Prevent the build system from adding --target flag
32-
export RUSTC_TARGET_ARG=""
23+
#export RUSTC_TARGET_ARG=""
3324

3425
# Will create component archives (dists) ./rust/build/dist
3526
cd rust

0 commit comments

Comments
 (0)