diff options
author | Kito Cheng <kito.cheng@sifive.com> | 2023-07-04 10:25:56 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-04 10:25:56 +0800 |
commit | e1dbc225732d1b1b5c96bda2b245121fb79d1499 (patch) | |
tree | d0c50faf76f116a2788d5e890af6ad7e4f8be05f | |
parent | 6da3855437e8ab7a8272400287186d5242610172 (diff) | |
parent | f377e0efc9497311d8273ee0f9969e8bf315b95c (diff) | |
download | riscv-gnu-toolchain-e1dbc225732d1b1b5c96bda2b245121fb79d1499.zip riscv-gnu-toolchain-e1dbc225732d1b1b5c96bda2b245121fb79d1499.tar.gz riscv-gnu-toolchain-e1dbc225732d1b1b5c96bda2b245121fb79d1499.tar.bz2 |
Merge pull request #1287 from patrick-rivos/ci-space-saver2023.07.05
Remove source trees after CI build to recover disk space before packaging
-rw-r--r-- | .github/workflows/build.yaml | 21 | ||||
-rw-r--r-- | .github/workflows/nightly-release.yaml | 11 |
2 files changed, 12 insertions, 20 deletions
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index f1feea2..25e082b 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -25,11 +25,6 @@ jobs: steps: - uses: actions/checkout@v2 - - name: initialize submodules - run: | - git submodule init - git submodule update --recursive --progress --recommend-shallow - - name: install dependencies run: sudo ./.github/setup-apt.sh @@ -52,6 +47,12 @@ jobs: run: | sudo make report-${{ matrix.mode }} -j $(nproc) + - name: recover space + run: | + sudo du -hs / 2> /dev/null || true + sudo rm -rf binutils dejagnu gcc gdb glibc llvm musl newlib pk qemu spike || true + sudo du -hs / 2> /dev/null || true + - name: tarball build run: tar czvf riscv.tar.gz -C /opt/ riscv/ @@ -88,11 +89,6 @@ jobs: steps: - uses: actions/checkout@v2 - - name: initialize submodules - run: | - git submodule init - git submodule update --recursive --progress --recommend-shallow - - name: install dependencies run: sudo ./.github/setup-apt.sh @@ -116,11 +112,6 @@ jobs: steps: - uses: actions/checkout@v2 - - name: initialize submodules - run: | - git submodule init - git submodule update --recursive --progress --recommend-shallow - - name: install dependencies run: sudo ./.github/setup-apt.sh diff --git a/.github/workflows/nightly-release.yaml b/.github/workflows/nightly-release.yaml index bdda82e..2f21f7a 100644 --- a/.github/workflows/nightly-release.yaml +++ b/.github/workflows/nightly-release.yaml @@ -60,11 +60,6 @@ jobs: steps: - uses: actions/checkout@v2 - - name: initialize submodules - run: | - git submodule init - git submodule update --recursive --progress --recommend-shallow - - name: install apt dependencies run: sudo ./.github/setup-apt.sh @@ -84,6 +79,12 @@ jobs: run: | sudo make -j$(nproc) build-sim SIM=qemu + - name: recover space + run: | + sudo du -hs / 2> /dev/null || true + sudo rm -rf binutils dejagnu gcc gdb glibc llvm musl newlib pk qemu spike || true + sudo du -hs / 2> /dev/null || true + - name: tarball build run: tar czvf riscv.tar.gz -C /opt/ riscv/ |