9898 env :
9999 SCCACHE_GHA_ENABLED : " true"
100100 RUSTC_WRAPPER : " sccache"
101+ CARGO_INCREMENTAL : 0
101102 strategy :
102103 fail-fast : false
103104 matrix :
@@ -163,6 +164,7 @@ jobs:
163164 env :
164165 SCCACHE_GHA_ENABLED : " true"
165166 RUSTC_WRAPPER : " sccache"
167+ CARGO_INCREMENTAL : 0
166168 strategy :
167169 matrix :
168170 job :
@@ -269,6 +271,7 @@ jobs:
269271 env :
270272 SCCACHE_GHA_ENABLED : " true"
271273 RUSTC_WRAPPER : " sccache"
274+ CARGO_INCREMENTAL : 0
272275 strategy :
273276 fail-fast : false
274277 matrix :
@@ -405,6 +408,7 @@ jobs:
405408 env :
406409 SCCACHE_GHA_ENABLED : " true"
407410 RUSTC_WRAPPER : " sccache"
411+ CARGO_INCREMENTAL : 0
408412 strategy :
409413 fail-fast : false
410414 matrix :
@@ -444,6 +448,7 @@ jobs:
444448 env :
445449 SCCACHE_GHA_ENABLED : " true"
446450 RUSTC_WRAPPER : " sccache"
451+ CARGO_INCREMENTAL : 0
447452 strategy :
448453 fail-fast : false
449454 matrix :
@@ -484,6 +489,7 @@ jobs:
484489 env :
485490 SCCACHE_GHA_ENABLED : " true"
486491 RUSTC_WRAPPER : " sccache"
492+ CARGO_INCREMENTAL : 0
487493 strategy :
488494 fail-fast : false
489495 matrix :
@@ -610,6 +616,7 @@ jobs:
610616 DOCKER_OPTS : ' --volume /etc/passwd:/etc/passwd --volume /etc/group:/etc/group'
611617 SCCACHE_GHA_ENABLED : " true"
612618 RUSTC_WRAPPER : " sccache"
619+ CARGO_INCREMENTAL : 0
613620 strategy :
614621 fail-fast : false
615622 matrix :
@@ -920,6 +927,7 @@ jobs:
920927 env :
921928 SCCACHE_GHA_ENABLED : " true"
922929 RUSTC_WRAPPER : " sccache"
930+ CARGO_INCREMENTAL : 0
923931 strategy :
924932 fail-fast : false
925933 matrix :
@@ -1001,6 +1009,7 @@ jobs:
10011009 env :
10021010 SCCACHE_GHA_ENABLED : " true"
10031011 RUSTC_WRAPPER : " sccache"
1012+ CARGO_INCREMENTAL : 0
10041013 strategy :
10051014 fail-fast : false
10061015 matrix :
@@ -1094,6 +1103,7 @@ jobs:
10941103 env :
10951104 SCCACHE_GHA_ENABLED : " true"
10961105 RUSTC_WRAPPER : " sccache"
1106+ CARGO_INCREMENTAL : 0
10971107 strategy :
10981108 fail-fast : false
10991109 matrix :
@@ -1218,7 +1228,7 @@ jobs:
12181228 fail_ci_if_error : false
12191229
12201230 test_separately :
1221- name : Separate Builds
1231+ name : Separate Builds (individual and coreutils)# duplicated with other CI, but has better appearance
12221232 runs-on : ${{ matrix.job.os }}
12231233 strategy :
12241234 fail-fast : false
@@ -1228,48 +1238,21 @@ jobs:
12281238 - { os: macos-latest , features: feat_os_macos }
12291239 - { os: windows-latest , features: feat_os_windows }
12301240 steps :
1231- - uses : actions/checkout@v6
1232- with :
1233- persist-credentials : false
1234- - uses : dtolnay/rust-toolchain@stable
1235- - uses : Swatinem/rust-cache@v2
1236- - name : build and test all programs individually
1237- shell : bash
1238- run : |
1239- CARGO_FEATURES_OPTION='--features=${{ matrix.job.features }}' ;
1240- for f in $(util/show-utils.sh ${CARGO_FEATURES_OPTION})
1241- do
1242- echo "Building and testing $f"
1243- cargo test -p "uu_$f"
1244- done
1245-
1246- test_all_features :
1247- name : Test all features separately
1248- needs : [ min_version, deps ]
1249- runs-on : ${{ matrix.job.os }}
1250- strategy :
1251- fail-fast : false
1252- matrix :
1253- job :
1254- - { os: ubuntu-latest , features: feat_os_unix }
1255- - { os: macos-latest , features: feat_os_macos }
1256- # - { os: windows-latest , features: feat_os_windows } https://github.com/uutils/coreutils/issues/7044
1257- steps :
12581241 - uses : actions/checkout@v6
12591242 with :
12601243 persist-credentials : false
12611244 - name : Avoid no space left on device
12621245 run : sudo rm -rf /usr/share/dotnet /usr/local/lib/android &
12631246 - uses : dtolnay/rust-toolchain@stable
12641247 - uses : Swatinem/rust-cache@v2
1265- - name : build and test all features individually
1248+ - name : build and test all programs individually
12661249 shell : bash
12671250 run : |
12681251 CARGO_FEATURES_OPTION='--features=${{ matrix.job.features }}' ;
12691252 for f in $(util/show-utils.sh ${CARGO_FEATURES_OPTION})
12701253 do
1271- echo "Running tests with --features=$f and --no-default-features "
1272- cargo test --features=$f --no-default-features
1254+ echo "Building and testing $f "
1255+ cargo test -p "uu_$f" -p coreutils - -features=$f --no-default-features
12731256 done
12741257
12751258 test_selinux :
0 commit comments