@@ -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 gperf lcov libexpect limactl pyinotify setenforce shopt texinfo valgrind libattr libcap taiki-e
5+ # spell-checker:ignore (libs/utils) autopoint chksum dpkg getenforce 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
7855 # ### Build environment setup
7956 - name : Install dependencies
8360 sudo apt-get update
8461 ## Check that build-gnu.sh works on the non SELinux system by installing libselinux only on lima
8562 sudo apt-get install -y autopoint gperf gdb python3-pyinotify valgrind libexpect-perl libacl1-dev libattr1-dev libcap-dev attr quilt
63+ curl http://launchpadlibrarian.net/831710181/automake_1.18.1-3_all.deb > automake-1.18.deb
64+ sudo dpkg -i --force-depends automake-1.18.deb
8665 - name : Add various locales
8766 shell : bash
8867 run : |
@@ -206,16 +185,6 @@ jobs:
206185 with :
207186 path : ' uutils'
208187 persist-credentials : false
209- - name : Extract GNU version from build-gnu.sh
210- id : gnu-version-selinux
211- run : |
212- GNU_VERSION=$(grep '^release_tag_GNU=' uutils/util/build-gnu.sh | cut -d'"' -f2)
213- if [ -z "$GNU_VERSION" ]; then
214- echo "Error: Failed to extract GNU version from build-gnu.sh"
215- exit 1
216- fi
217- echo "REPO_GNU_REF=${GNU_VERSION}" >> $GITHUB_ENV
218- echo "Extracted GNU version: ${GNU_VERSION}"
219188 - uses : dtolnay/rust-toolchain@master
220189 with :
221190 toolchain : stable
@@ -224,20 +193,7 @@ jobs:
224193 with :
225194 workspaces : " ./uutils -> target"
226195 - name : Checkout code (GNU coreutils)
227- uses : actions/checkout@v6
228- with :
229- repository : ' coreutils/coreutils'
230- path : ' gnu'
231- ref : ${{ env.REPO_GNU_REF }}
232- submodules : false
233- persist-credentials : false
234- - name : Override submodule URL and initialize submodules
235- # Use github instead of upstream git server
236- run : |
237- git submodule sync --recursive
238- git config submodule.gnulib.url https://github.com/coreutils/gnulib.git
239- git submodule update --init --recursive --depth 1
240- working-directory : gnu
196+ run : (mkdir -p gnu && cd gnu && bash ../uutils/util/fetch-gnu.sh)
241197
242198 # ### Lima build environment setup
243199 - name : Setup Lima
0 commit comments