File tree Expand file tree Collapse file tree 3 files changed +8
-31
lines changed Expand file tree Collapse file tree 3 files changed +8
-31
lines changed Original file line number Diff line number Diff line change 70
70
71
71
- uses : actions/checkout@v4
72
72
73
- - name : Install ninja and riscv-tools
74
- if : matrix.os == 'ubuntu'
75
- run : |
76
- sudo apt update
77
- sudo apt-get -y install ninja-build gcc-riscv64-unknown-elf
78
-
79
- - name : Install ninja and riscv-tools
80
- if : matrix.os == 'macos'
81
- run : |
82
- brew install ninja
83
- brew tap riscv-software-src/riscv
84
- brew install riscv-tools
73
+ - name : Install ninja
74
+
85
75
86
76
- name : Download source
87
77
run : ./clone.sh
92
82
- name : Build toolchain
93
83
run : ./build.sh
94
84
95
- # Push in the Github environment variable the name of the artifact
85
+ # Push the name of the artifact into the Github environment variable
96
86
- run : ./config.sh -artifact_name
97
87
98
88
- name : Package toolchain
Original file line number Diff line number Diff line change 22
22
- runner : macos-13
23
23
os : macos
24
24
runs-on : ${{ matrix.runner }}
25
+ timeout-minutes : 120
25
26
steps :
26
27
- name : Install nightly toolchain
27
28
id : rustc-toolchain
@@ -43,24 +44,12 @@ jobs:
43
44
path : toolchain
44
45
45
46
- name : Check out athenavm/athena
46
- uses : actions/checkout@v3
47
+ uses : actions/checkout@v4
47
48
with :
48
49
repository : athenavm/athena
49
50
ref : main
50
51
path : athena
51
52
52
- - name : Install riscv-tools
53
- if : matrix.os == 'ubuntu'
54
- run : |
55
- sudo apt update
56
- sudo apt-get -y install gcc-riscv64-unknown-elf
57
-
58
- - name : Install riscv-tools
59
- if : matrix.os == 'macos'
60
- run : |
61
- brew tap riscv-software-src/riscv
62
- brew install riscv-tools
63
-
64
53
- name : Build
65
54
run :
66
55
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 @@ -5,12 +5,13 @@ set -euo pipefail
5
5
source config.sh
6
6
7
7
# Fail fast if these tools aren't properly installed and in the path
8
- need_cmd riscv32-unknown-elf- clang
9
- need_cmd riscv32-unknown-elf- clang++
8
+ need_cmd clang
9
+ need_cmd clang++
10
10
11
11
# Rust requires a custom target file to exist for our custom target as part of the bootstrap build,
12
12
# but it doesn't actually look at the contents.
13
13
touch /tmp/riscv32em-athena-zkvm-elf.json
14
+ export RUST_TARGET_PATH=" /tmp"
14
15
15
16
# Set environment variables to override compiler flags
16
17
export CC_riscv32em_athena_zkvm_elf=" clang"
@@ -26,9 +27,6 @@ export CARGO_TARGET_RISCV32EM_ATHENA_ZKVM_ELF_RUSTFLAGS="-Cpasses=loweratomic -C
26
27
# Override the default target for compiler-rt
27
28
export COMPILER_RT_DEFAULT_TARGET_TRIPLE=" riscv32-unknown-elf"
28
29
29
- # Force the use of our custom target spec
30
- export RUST_TARGET_PATH=" /tmp"
31
-
32
30
# Prevent the build system from adding --target flag
33
31
export RUSTC_TARGET_ARG=" "
34
32
You can’t perform that action at this time.
0 commit comments