Skip to content

Commit

Permalink
Put prefix and tarball directory to a bind mount
Browse files Browse the repository at this point in the history
To optimize filesystem performance and disk usage.
  • Loading branch information
tienntr committed Dec 15, 2023
1 parent 04eb02e commit 01bb13b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build-centos7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
container:
image: centos:7
volumes:
- /opt/:/opt/
- /usr/share/:/host/usr/share/
- /usr/local/lib/:/host/usr/local/lib/

Expand Down Expand Up @@ -76,9 +77,9 @@ jobs:

- name: Create tarball
# WARNING each xz thread consumes nearly 1 GB of memory
run: XZOPT=-T0 tar -cJvf rv-gnu-toolchain-centos7.txz -C /opt/ riscv/
run: XZOPT=-T0 tar -cJvf /opt/rv-gnu-toolchain-centos7.txz -C /opt/ riscv/

- uses: actions/upload-artifact@v3
with:
name: toolchain-for-centos7
path: rv-gnu-toolchain-centos7.txz
path: /opt/rv-gnu-toolchain-centos7.txz

0 comments on commit 01bb13b

Please sign in to comment.