@@ -2,7 +2,7 @@ name: GnuTests
22
33# spell-checker:ignore (abbrev/names) CodeCov gnulib GnuTests Swatinem
44# spell-checker:ignore (jargon) submodules devel
5- # spell-checker:ignore (libs/utils) autopoint chksum getenforce getlimits gperf lcov libexpect limactl pyinotify setenforce shopt texinfo valgrind libattr libcap taiki-e
5+ # spell-checker:ignore (libs/utils) autopoint chksum dpkg getenforce getlimits gperf lcov libexpect limactl pyinotify setenforce shopt texinfo valgrind libattr libcap taiki-e
66# spell-checker:ignore (options) Ccodegen Coverflow Cpanic Zpanic
77# spell-checker:ignore (people) Dawid Dziurla * dawidd dtolnay
88# spell-checker:ignore (vars) FILESET SUBDIRS XPASS
4242 with :
4343 path : ' uutils'
4444 persist-credentials : false
45- - name : Extract GNU version from build-gnu.sh
46- id : gnu-version
47- run : |
48- GNU_VERSION=$(grep '^release_tag_GNU=' uutils/util/build-gnu.sh | cut -d'"' -f2)
49- if [ -z "$GNU_VERSION" ]; then
50- echo "Error: Failed to extract GNU version from build-gnu.sh"
51- exit 1
52- fi
53- echo "REPO_GNU_REF=${GNU_VERSION}" >> $GITHUB_ENV
54- echo "Extracted GNU version: ${GNU_VERSION}"
5545 - uses : dtolnay/rust-toolchain@master
5646 with :
5747 toolchain : stable
6050 with :
6151 workspaces : " ./uutils -> target"
6252 - name : Checkout code (GNU coreutils)
63- uses : actions/checkout@v6
64- with :
65- repository : ' coreutils/coreutils'
66- path : ' gnu'
67- ref : ${{ env.REPO_GNU_REF }}
68- submodules : false
69- persist-credentials : false
70- - name : Override submodule URL and initialize submodules
71- # Use github instead of upstream git server
72- run : |
73- git submodule sync --recursive
74- git config submodule.gnulib.url https://github.com/coreutils/gnulib.git
75- git submodule update --init --recursive --depth 1
76- working-directory : gnu
53+ run : (mkdir -p gnu && cd gnu && bash ../uutils/util/fetch-gnu.sh)
7754 - name : Restore files for faster configure and skipping make
7855 uses : actions/cache@v5
7956 id : cache-config-gnu
8562 restore-keys : |
8663 ${{ runner.os }}-gnu-config-${{ env.REPO_GNU_REF }}-
8764 ${{ runner.os }}-gnu-config-
88-
8965 # ### Build environment setup
9066 - name : Install dependencies
9167 shell : bash
9470 sudo apt-get update
9571 ## Check that build-gnu.sh works on the non SELinux system by installing libselinux only on lima
9672 sudo apt-get install -y autopoint gperf gdb python3-pyinotify valgrind libexpect-perl libacl1-dev libattr1-dev libcap-dev attr quilt
73+ curl http://launchpadlibrarian.net/831710181/automake_1.18.1-3_all.deb > automake-1.18.deb
74+ sudo dpkg -i --force-depends automake-1.18.deb
9775 - name : Add various locales
9876 shell : bash
9977 run : |
@@ -226,16 +204,6 @@ jobs:
226204 with :
227205 path : ' uutils'
228206 persist-credentials : false
229- - name : Extract GNU version from build-gnu.sh
230- id : gnu-version-selinux
231- run : |
232- GNU_VERSION=$(grep '^release_tag_GNU=' uutils/util/build-gnu.sh | cut -d'"' -f2)
233- if [ -z "$GNU_VERSION" ]; then
234- echo "Error: Failed to extract GNU version from build-gnu.sh"
235- exit 1
236- fi
237- echo "REPO_GNU_REF=${GNU_VERSION}" >> $GITHUB_ENV
238- echo "Extracted GNU version: ${GNU_VERSION}"
239207 - uses : dtolnay/rust-toolchain@master
240208 with :
241209 toolchain : stable
@@ -244,20 +212,7 @@ jobs:
244212 with :
245213 workspaces : " ./uutils -> target"
246214 - name : Checkout code (GNU coreutils)
247- uses : actions/checkout@v6
248- with :
249- repository : ' coreutils/coreutils'
250- path : ' gnu'
251- ref : ${{ env.REPO_GNU_REF }}
252- submodules : false
253- persist-credentials : false
254- - name : Override submodule URL and initialize submodules
255- # Use github instead of upstream git server
256- run : |
257- git submodule sync --recursive
258- git config submodule.gnulib.url https://github.com/coreutils/gnulib.git
259- git submodule update --init --recursive --depth 1
260- working-directory : gnu
215+ run : (mkdir -p gnu && cd gnu && bash ../uutils/util/fetch-gnu.sh)
261216
262217 # ### Lima build environment setup
263218 - name : Setup Lima
0 commit comments