forked from chipsalliance/caliptra-sw
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preinstall cargo-nextest into GCE and FPGA runner images.
- Loading branch information
Showing
3 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,6 +56,18 @@ if [[ -z "${SKIP_DEBOOTSTRAP}" ]]; then | |
chroot out/rootfs bash -c "su runner -c \"cd /home/runner && tar xvzf actions-runner-linux-arm64-${RUNNER_VERSION}.tar.gz && rm -f actions-runner-linux-arm64-${RUNNER_VERSION}.tar.gz\"" | ||
fi | ||
|
||
su $SUDO_USER -c " | ||
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=\"aarch64-linux-gnu-gcc\" \ | ||
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_RUSTFLAGS=\"-C link-arg=--sysroot=$PWD/out/rootfs\" \ | ||
~/.cargo/bin/cargo install [email protected] \ | ||
--locked \ | ||
--no-default-features \ | ||
--features=default-no-update \ | ||
--target=aarch64-unknown-linux-gnu \ | ||
--root /tmp/cargo-nextest" | ||
|
||
cp /tmp/cargo-nextest/bin/cargo-nextest out/rootfs/usr/bin/ | ||
|
||
chroot out/rootfs bash -c 'echo ::1 caliptra-fpga >> /etc/hosts' | ||
cp startup-script.sh out/rootfs/usr/bin/ | ||
chroot out/rootfs chmod 755 /usr/bin/startup-script.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,6 +42,8 @@ set -x | |
echo Installing Rust Toolchain | ||
su runner -c "curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain=1.70" | ||
su runner -c "/home/runner/.cargo/bin/rustup target add riscv32imc-unknown-none-elf" | ||
echo Installing cargo-nextest | ||
su runner -c "/home/runner/.cargo/bin/cargo install [email protected] --locked --no-default-features --features=default-no-update" | ||
|
||
mkdir sw | ||
( | ||
|