Skip to content

Commit

Permalink
script: Use minimum dependency to avoid a storage issue
Browse files Browse the repository at this point in the history
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
zpzigi754 committed Oct 10, 2023
1 parent 71f2ebf commit 853b9f6
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 15 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,9 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
submodules: true

- name: Install dependencies
run: ./scripts/init.sh
run: ./scripts/init_min_acs.sh

- name: Test ACS
run: ./scripts/tests/acs.sh
Expand All @@ -52,11 +50,9 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
submodules: true

- name: Install dependencies
run: ./scripts/init.sh
run: ./scripts/init_min_tf_a.sh

- name: Run tf-a-tests on normal-world
run: ./scripts/tests/tf-a-tests.sh
Expand Down
18 changes: 9 additions & 9 deletions scripts/deps/pkgs-for-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ set -e
sudo apt-get update

sudo apt install -y -qq --no-install-recommends \
gcc-multilib cmake libssl-dev \
binutils python3-pip \
device-tree-compiler xterm fakeroot mtools fdisk cpio \
dosfstools e2fsprogs \
libxml-libxml-perl \
jq lcov graphviz inkscape \
flex bison \
bzip2 \
srecord
gcc-multilib cmake libssl-dev \
binutils python3-pip \
device-tree-compiler xterm fakeroot mtools fdisk cpio \
dosfstools e2fsprogs \
libxml-libxml-perl \
jq lcov \
flex bison \
bzip2 \
srecord

pip3 install toml
16 changes: 16 additions & 0 deletions scripts/deps/rust_min.sh
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
20 changes: 20 additions & 0 deletions scripts/init_min_acs.sh
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
21 changes: 21 additions & 0 deletions scripts/init_min_tf_a.sh
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

0 comments on commit 853b9f6

Please sign in to comment.