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 ../util/fetch-gnu.sh)
7754
7855 # ### Build environment setup
7956 - name : Install dependencies
@@ -206,16 +183,6 @@ jobs:
206183 with :
207184 path : ' uutils'
208185 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}"
219186 - uses : dtolnay/rust-toolchain@master
220187 with :
221188 toolchain : stable
@@ -224,20 +191,7 @@ jobs:
224191 with :
225192 workspaces : " ./uutils -> target"
226193 - 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
194+ run : (mkdir -p gnu && cd gnu && bash ../util/fetch-gnu.sh)
241195
242196 # ### Lima build environment setup
243197 - name : Setup Lima
0 commit comments