diff options
author | Patrick O'Neill <patrick@rivosinc.com> | 2023-06-28 14:42:25 -0700 |
---|---|---|
committer | Patrick O'Neill <patrick@rivosinc.com> | 2023-06-29 19:12:24 -0700 |
commit | f377e0efc9497311d8273ee0f9969e8bf315b95c (patch) | |
tree | d0c50faf76f116a2788d5e890af6ad7e4f8be05f /.github | |
parent | 6da3855437e8ab7a8272400287186d5242610172 (diff) | |
download | riscv-gnu-toolchain-f377e0efc9497311d8273ee0f9969e8bf315b95c.zip riscv-gnu-toolchain-f377e0efc9497311d8273ee0f9969e8bf315b95c.tar.gz riscv-gnu-toolchain-f377e0efc9497311d8273ee0f9969e8bf315b95c.tar.bz2 |
Remove source trees after CI build to recover disk space
Also avoid initializing subdirectories to avoid cloning
unused trees (llvm,gcc)
Diffstat (limited to '.github')
-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/ |