From 01bb13b415d0c894fb11ebf583c6a95717f12684 Mon Sep 17 00:00:00 2001 From: tienntr <93871686+tienntr@users.noreply.github.com> Date: Fri, 15 Dec 2023 03:12:32 +0000 Subject: [PATCH] Put prefix and tarball directory to a bind mount To optimize filesystem performance and disk usage. --- .github/workflows/build-centos7.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-centos7.yaml b/.github/workflows/build-centos7.yaml index 72e70d1c640..2ad76fb6837 100644 --- a/.github/workflows/build-centos7.yaml +++ b/.github/workflows/build-centos7.yaml @@ -11,6 +11,7 @@ jobs: container: image: centos:7 volumes: + - /opt/:/opt/ - /usr/share/:/host/usr/share/ - /usr/local/lib/:/host/usr/local/lib/ @@ -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