Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/GnuTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ jobs:
sudo apt-get update
sudo apt-get install -y autopoint gperf gdb python3-pyinotify valgrind libacl1-dev libattr1-dev libcap-dev libselinux1-dev attr quilt gettext

- name: cache GNU tarball
uses: actions/cache@v6
with:
path: /tmp/gnu-tar.tar.xz
key: ${{ hashFiles('uutils/util/build-gnu.sh') }}
- name: Build binaries and GNU tar
env:
PROFILE: "release"
Expand Down
8 changes: 4 additions & 4 deletions util/build-gnu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ if test ! -f "${path_GNU}/README"; then
echo "Extracting GNU tar..."
mkdir -p "${path_GNU}"
cd "${path_GNU}"
curl -fsSL https://ftpmirror.gnu.org/tar/tar-1.35.tar.xz -o gnu-tar.tar.xz
echo e1a200d21f433cd7d917dd979db16919a9167056ae62cf7d038a6118e56b2fe419cd4a396eee66f1f4dc13a8dc380e23f6ffd7ee0ca84e5dd9ad9411f60e002c gnu-tar.tar.xz \
| b2sum --check
tar xJf gnu-tar.tar.xz --strip-components=1
b2=e1a200d21f433cd7d917dd979db16919a9167056ae62cf7d038a6118e56b2fe419cd4a396eee66f1f4dc13a8dc380e23f6ffd7ee0ca84e5dd9ad9411f60e002c
echo $b2 /tmp/gnu-tar.tar.xz | b2sum --check 2>/dev/null || \
{ curl -fsSL https://ftpmirror.gnu.org/tar/tar-1.35.tar.xz -o /tmp/gnu-tar.tar.xz && echo $b2 /tmp/gnu-tar.tar.xz | b2sum --check; }
tar xJf /tmp/gnu-tar.tar.xz --strip-components=1
fi

cd "${path_GNU}"
Expand Down
Loading