File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,11 +8,16 @@ no_std_packages=(
88 commonware-storage
99)
1010
11- target=" thumbv7em-none-eabihf"
11+ target=" riscv32imac-unknown-none-elf"
12+ image=" ghcr.io/commonwarexyz/monorepo/rust-riscv32imac-cross@sha256:652f5ff21c943935bc1caf7cf0c65b38127381c66b423f70f86dc7785d93ce85"
1213base_rustflags=" ${RUSTFLAGS:- } "
1314
1415for package in " ${no_std_packages[@]} " ; do
15- build_cmd=(cargo build -p " $package " --no-default-features --target " $target " --release)
16+ build_cmd=(docker run \
17+ --rm \
18+ -v ` pwd` :/workdir \
19+ -w=" /workdir" \
20+ " $image " cargo +nightly build -p " $package " -Zbuild-std=core,alloc --no-default-features --target " $target " --release)
1621 pretty_cmd=" ${build_cmd[*]} "
1722 if [ -n " $CI " ]; then
1823 echo " ::group::${pretty_cmd} "
Original file line number Diff line number Diff line change @@ -176,12 +176,6 @@ jobs:
176176 uses : actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
177177 - name : Run setup
178178 uses : ./.github/actions/setup
179- - name : Add minimal no_std target
180- run : rustup target add thumbv7em-none-eabihf
181- - name : Install ARM bare-metal toolchain (required to compile C from x86 worker)
182- run : |
183- sudo apt-get update
184- sudo apt-get install -y gcc-arm-none-eabi
185179 - name : Check no_std compatibility
186180 run : ./.github/scripts/check_no_std.sh
187181
You can’t perform that action at this time.
0 commit comments