@@ -6,7 +6,7 @@ name: GnuTests
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
9- # spell-checker:ignore userns
9+ # spell-checker:ignore userns nodocs
1010
1111# * note: to run a single test => `REPO/util/run-gnu-test.sh PATH/TO/TEST/SCRIPT`
1212
@@ -38,29 +38,17 @@ jobs:
3838 name: Run GNU tests (native)
3939 runs-on: ubuntu-24.04
4040 steps:
41- #### Get the code, setup cache
41+ #### Get the code
4242 - name: Checkout code (uutils)
4343 uses: actions/checkout@v6
4444 with:
4545 path: 'uutils'
4646 persist-credentials: false
47- - uses: dtolnay/rust-toolchain@master
48- with:
49- toolchain: stable
5047 - uses: Swatinem/rust-cache@v2
5148 with:
5249 workspaces: "./uutils -> target"
5350 - name: Checkout code (GNU coreutils)
5451 run: (mkdir -p gnu && cd gnu && bash ../uutils/util/fetch-gnu.sh)
55- - name: Restore files for faster configure and skipping make
56- uses: actions/cache@v5
57- id: cache-config-gnu
58- with:
59- path: |
60- gnu/config.cache
61- gnu/src/getlimits
62- key: ${{ runner.os }}-gnu-config-${{ hashFiles('gnu/NEWS') }}-${{ hashFiles('uutils/util/build-gnu.sh') }} # use build-gnu.sh for extremely safe caching
63-
6452 #### Build environment setup
6553 - name: Install dependencies
6654 shell: bash
@@ -105,15 +93,6 @@ jobs:
10593 cd 'uutils'
10694 env PROFILE=release-small bash util/build-gnu.sh
10795
108- - name: Save files for faster configure and skipping make
109- uses: actions/cache/save@v5
110- if: always() && steps.cache-config-gnu.outputs.cache-hit != 'true'
111- with:
112- path: |
113- gnu/config.cache
114- gnu/src/getlimits
115- key: ${{ runner.os }}-gnu-config-${{ hashFiles('gnu/NEWS') }}-${{ hashFiles('uutils/util/build-gnu.sh') }}
116-
11796 ### Run tests as user
11897 - name: Run GNU tests
11998 shell: bash
@@ -201,18 +180,12 @@ jobs:
201180 name: Run GNU tests (SELinux)
202181 runs-on: ubuntu-24.04
203182 steps:
204- #### Get the code, setup cache
183+ #### Get the code
205184 - name: Checkout code (uutils)
206185 uses: actions/checkout@v6
207186 with:
208187 path: 'uutils'
209188 persist-credentials: false
210- - uses: dtolnay/rust-toolchain@master
211- with:
212- toolchain: stable
213- - uses: Swatinem/rust-cache@v2
214- with:
215- workspaces: "./uutils -> target"
216189 - name: Checkout code (GNU coreutils)
217190 run: (mkdir -p gnu && cd gnu && bash ../uutils/util/fetch-gnu.sh)
218191
@@ -235,8 +208,7 @@ jobs:
235208
236209 - name: Install dependencies in VM
237210 run: |
238- lima sudo dnf -y update
239- lima sudo dnf -y install autoconf bison gperf gcc gdb jq libacl-devel libattr-devel libcap-devel libselinux-devel attr rustup clang-devel automake patch quilt
211+ lima sudo dnf -y install --nodocs autoconf bison gperf gcc gdb jq libacl-devel libattr-devel libcap-devel libselinux-devel attr rustup clang-devel automake patch quilt
240212 lima rustup-init -y --profile=minimal --default-toolchain stable
241213 - name: Copy the sources to VM
242214 run: |
@@ -325,9 +297,6 @@ jobs:
325297 with:
326298 path: 'uutils'
327299 persist-credentials: false
328- - uses: dtolnay/rust-toolchain@master
329- with:
330- toolchain: stable
331300 - uses: Swatinem/rust-cache@v2
332301 with:
333302 workspaces: "./uutils -> target"
@@ -385,7 +354,7 @@ jobs:
385354 path: 'uutils'
386355 persist-credentials: false
387356 - name: Retrieve reference artifacts
388- uses: dawidd6/action-download-artifact@v12
357+ uses: dawidd6/action-download-artifact@v14
389358 # ref: <https://github.com/dawidd6/action-download-artifact>
390359 continue-on-error: true ## don't break the build for missing reference artifacts (may be expired or just not generated yet)
391360 with:
0 commit comments