File tree Expand file tree Collapse file tree 2 files changed +7
-12
lines changed Expand file tree Collapse file tree 2 files changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -65,13 +65,17 @@ jobs:
65
65
~/.cargo/registry/cache/
66
66
~/.cargo/git/db/
67
67
athena/target/
68
- key : ${{ matrix.os }}-athenabuild-${{ hashFiles('athena/**/Cargo.lock ') }}
68
+ key : ${{ matrix.os }}-athenabuild-${{ hashFiles('athena/**/Cargo.toml ') }}
69
69
70
70
- uses : actions/cache@v4
71
71
name : Cache Rust toolchain
72
72
with :
73
73
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
75
79
key : ${{ matrix.os }}-rusttoolchain-${{ env.RUST_COMMIT }}
76
80
77
81
- name : Build
Original file line number Diff line number Diff line change @@ -13,23 +13,14 @@ need_cmd clang++
13
13
touch /tmp/riscv32em-athena-zkvm-elf.json
14
14
export RUST_TARGET_PATH=" /tmp"
15
15
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
-
20
16
# Explicitly set CFLAGS without the problematic flags
21
17
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"
23
18
24
19
# Set Rust flags
25
20
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"
30
21
31
22
# Prevent the build system from adding --target flag
32
- export RUSTC_TARGET_ARG=" "
23
+ # export RUSTC_TARGET_ARG=""
33
24
34
25
# Will create component archives (dists) ./rust/build/dist
35
26
cd rust
You can’t perform that action at this time.
0 commit comments