Skip to content

Commit

Permalink
Merge pull request #1287 from patrick-rivos/ci-space-saver
Browse files Browse the repository at this point in the history
Remove source trees after CI build to recover disk space before packaging
  • Loading branch information
kito-cheng authored Jul 4, 2023
2 parents 6da3855 + f377e0e commit e1dbc22
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 20 deletions.
21 changes: 6 additions & 15 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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/

Expand Down Expand Up @@ -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

Expand All @@ -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

Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/nightly-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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/

Expand Down

0 comments on commit e1dbc22

Please sign in to comment.