File tree Expand file tree Collapse file tree 2 files changed +30
-5
lines changed Expand file tree Collapse file tree 2 files changed +30
-5
lines changed Original file line number Diff line number Diff line change 50
50
ref : main
51
51
path : athena
52
52
53
+ - name : Source config.sh and export RUST_COMMIT
54
+ run : |
55
+ source toolchain/config.sh
56
+ echo "Using Rust commit: $RUST_COMMIT"
57
+ echo "RUST_COMMIT=$RUST_COMMIT" >> $GITHUB_ENV
58
+
59
+ - uses : actions/cache@v4
60
+ name : Cache Athena build
61
+ with :
62
+ path : |
63
+ ~/.cargo/bin/
64
+ ~/.cargo/registry/index/
65
+ ~/.cargo/registry/cache/
66
+ ~/.cargo/git/db/
67
+ athena/target/
68
+ key : ${{ matrix.os }}-athenabuild-${{ hashFiles('athena/**/Cargo.lock') }}
69
+
70
+ - uses : actions/cache@v4
71
+ name : Cache Rust toolchain
72
+ with :
73
+ path : |
74
+ toolchain/rust/
75
+ key : ${{ matrix.os }}-rusttoolchain-${{ env.RUST_COMMIT }}
76
+
53
77
- name : Build
54
78
run :
55
79
GITHUB_ACTIONS=false ATHENA_BUILD_DIR=$GITHUB_WORKSPACE/toolchain cargo run --bin cargo-athena -- athena
Original file line number Diff line number Diff line change @@ -14,18 +14,19 @@ touch /tmp/riscv32em-athena-zkvm-elf.json
14
14
export RUST_TARGET_PATH=" /tmp"
15
15
16
16
# Set environment variables to override compiler flags
17
- export CC_riscv32em_athena_zkvm_elf=" clang"
18
- export CXX_riscv32em_athena_zkvm_elf=" clang++"
17
+ # export CC_riscv32em_athena_zkvm_elf="clang"
18
+ # export CXX_riscv32em_athena_zkvm_elf="clang++"
19
19
20
20
# Explicitly set CFLAGS without the problematic flags
21
21
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 "
22
+ # export CXXFLAGS_riscv32em_athena_zkvm_elf="$CFLAGS_riscv32em_athena_zkvm_elf"
23
23
24
24
# Set Rust flags
25
- export CARGO_TARGET_RISCV32EM_ATHENA_ZKVM_ELF_RUSTFLAGS=" -Cpasses=loweratomic -Clink-arg=-march=rv32em -Clink-arg=-mabi=ilp32e"
25
+ 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"
26
27
27
28
# Override the default target for compiler-rt
28
- export COMPILER_RT_DEFAULT_TARGET_TRIPLE=" riscv32-unknown-elf"
29
+ # export COMPILER_RT_DEFAULT_TARGET_TRIPLE="riscv32-unknown-elf"
29
30
30
31
# Prevent the build system from adding --target flag
31
32
export RUSTC_TARGET_ARG=" "
You can’t perform that action at this time.
0 commit comments