-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
script: Use minimum dependency to avoid a storage issue
The below error occurs on `acs` and `tf-a-tests`. ``` error: failed to extract package (perhaps you ran out of disk space?): No space left on device (os error 28) info: syncing channel updates for 'nightly-2023-09-05-x86_64-unknown-linux-gnu' info: latest update on 2023-09-05, rust version 1.74.0-nightly (ec08a0337 2023-09-04) info: downloading component 'cargo' info: downloading component 'rust-std' info: downloading component 'rustc' info: installing component 'cargo' info: installing component 'rust-std' info: installing component 'rustc' info: rolling back changes error: failed to extract package (perhaps you ran out of disk space?) ```
- Loading branch information
Showing
5 changed files
with
68 additions
and
15 deletions.
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
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env bash | ||
|
||
ROOT=$(dirname -- "$0")/../.. | ||
MSRV=$(cat $ROOT/rust-toolchain) | ||
|
||
if ! which rustup &>/dev/null; then | ||
wget --no-check-certificate https://sh.rustup.rs -O rustup-init.sh | ||
cat rustup-init.sh | sh -s -- -y --profile=minimal --default-toolchain $MSRV | ||
rm rustup-init.sh | ||
source $HOME/.cargo/env | ||
fi | ||
|
||
rustup toolchain install $MSRV | ||
rustup target add aarch64-unknown-none-softfloat | ||
|
||
rustc --version --verbose |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
ROOT=$(git rev-parse --show-toplevel) | ||
HERE=$ROOT/scripts | ||
|
||
# Install packages | ||
$HERE/deps/pkgs-for-ci.sh | ||
|
||
# Sync submodules (only assets, tf-a, acs) | ||
git submodule update --init --depth 1 $ROOT/assets | ||
git submodule update --init --depth 1 $ROOT/third-party/tf-a | ||
git submodule update --init --depth 1 $ROOT/third-party/cca-rmm-acs | ||
|
||
# Install rust (min) | ||
$HERE/deps/rust_min.sh | ||
|
||
# Install FVP simulator | ||
$HERE/deps/simulator.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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
ROOT=$(git rev-parse --show-toplevel) | ||
HERE=$ROOT/scripts | ||
|
||
# Install packages | ||
$HERE/deps/pkgs-for-ci.sh | ||
|
||
# Sync submodules (only assets, tf-a, tf-a-tests, tf-rmm) | ||
git submodule update --init --depth 1 $ROOT/assets | ||
git submodule update --init --depth 1 $ROOT/third-party/tf-a | ||
git submodule update --init --depth 1 $ROOT/third-party/tf-a-tests | ||
git submodule update --init --recursive --depth 1 $ROOT/third-party/tf-rmm | ||
|
||
# Install rust (min) | ||
$HERE/deps/rust_min.sh | ||
|
||
# Install FVP simulator | ||
$HERE/deps/simulator.sh |