@@ -101,6 +101,7 @@ jobs:
101101 env :
102102 SCCACHE_GHA_ENABLED : " true"
103103 RUSTC_WRAPPER : " sccache"
104+ CARGO_INCREMENTAL : 0
104105 strategy :
105106 fail-fast : false
106107 matrix :
@@ -166,6 +167,7 @@ jobs:
166167 env :
167168 SCCACHE_GHA_ENABLED : " true"
168169 RUSTC_WRAPPER : " sccache"
170+ CARGO_INCREMENTAL : 0
169171 strategy :
170172 matrix :
171173 job :
@@ -272,6 +274,7 @@ jobs:
272274 env :
273275 SCCACHE_GHA_ENABLED : " true"
274276 RUSTC_WRAPPER : " sccache"
277+ CARGO_INCREMENTAL : 0
275278 strategy :
276279 fail-fast : false
277280 matrix :
@@ -408,6 +411,7 @@ jobs:
408411 env :
409412 SCCACHE_GHA_ENABLED : " true"
410413 RUSTC_WRAPPER : " sccache"
414+ CARGO_INCREMENTAL : 0
411415 strategy :
412416 fail-fast : false
413417 matrix :
@@ -450,6 +454,7 @@ jobs:
450454 env :
451455 SCCACHE_GHA_ENABLED : " true"
452456 RUSTC_WRAPPER : " sccache"
457+ CARGO_INCREMENTAL : 0
453458 strategy :
454459 fail-fast : false
455460 matrix :
@@ -493,6 +498,7 @@ jobs:
493498 env :
494499 SCCACHE_GHA_ENABLED : " true"
495500 RUSTC_WRAPPER : " sccache"
501+ CARGO_INCREMENTAL : 0
496502 strategy :
497503 fail-fast : false
498504 matrix :
@@ -619,6 +625,7 @@ jobs:
619625 DOCKER_OPTS : ' --volume /etc/passwd:/etc/passwd --volume /etc/group:/etc/group'
620626 SCCACHE_GHA_ENABLED : " true"
621627 RUSTC_WRAPPER : " sccache"
628+ CARGO_INCREMENTAL : 0
622629 strategy :
623630 fail-fast : false
624631 matrix :
@@ -932,6 +939,7 @@ jobs:
932939 env :
933940 SCCACHE_GHA_ENABLED : " true"
934941 RUSTC_WRAPPER : " sccache"
942+ CARGO_INCREMENTAL : 0
935943 strategy :
936944 fail-fast : false
937945 matrix :
@@ -1013,6 +1021,7 @@ jobs:
10131021 env :
10141022 SCCACHE_GHA_ENABLED : " true"
10151023 RUSTC_WRAPPER : " sccache"
1024+ CARGO_INCREMENTAL : 0
10161025 strategy :
10171026 fail-fast : false
10181027 matrix :
@@ -1106,6 +1115,7 @@ jobs:
11061115 env :
11071116 SCCACHE_GHA_ENABLED : " true"
11081117 RUSTC_WRAPPER : " sccache"
1118+ CARGO_INCREMENTAL : 0
11091119 strategy :
11101120 fail-fast : false
11111121 matrix :
@@ -1230,7 +1240,7 @@ jobs:
12301240 fail_ci_if_error : false
12311241
12321242 test_separately :
1233- name : Separate Builds
1243+ name : Separate Builds (individual and coreutils)# duplicated with other CI, but has better appearance
12341244 runs-on : ${{ matrix.job.os }}
12351245 strategy :
12361246 fail-fast : false
@@ -1246,48 +1256,21 @@ jobs:
12461256 - uses : actions/checkout@v6
12471257 with :
12481258 persist-credentials : false
1259+ - name : Avoid no space left on device
1260+ run : sudo rm -rf /usr/share/dotnet /usr/local/lib/android &
12491261 - uses : dtolnay/rust-toolchain@stable
12501262 - uses : Swatinem/rust-cache@v2
1251- - name : build and test all programs individually
1252- shell : bash
1253- run : |
1254- CARGO_FEATURES_OPTION='--features=${{ matrix.job.features }}' ;
1255- for f in $(util/show-utils.sh ${CARGO_FEATURES_OPTION})
1256- do
1257- echo "Building and testing $f"
1258- cargo test -p "uu_$f"
1259- done
1260-
1261- test_all_features :
1262- name : Test all features separately
1263- needs : [ min_version, deps ]
1264- runs-on : ${{ matrix.job.os }}
1265- strategy :
1266- fail-fast : false
1267- matrix :
1268- job :
1269- - { os: ubuntu-latest , features: feat_os_unix }
1270- - { os: macos-latest , features: feat_os_macos }
1271- # - { os: windows-latest , features: feat_os_windows } https://github.com/uutils/coreutils/issues/7044
1272- steps :
12731263 - name : Disable spotlight
12741264 if : runner.os == 'macOS'
12751265 run : sudo mdutil -a -i off &
1276- - uses : actions/checkout@v6
1277- with :
1278- persist-credentials : false
1279- - name : Avoid no space left on device
1280- run : sudo rm -rf /usr/share/dotnet /usr/local/lib/android &
1281- - uses : dtolnay/rust-toolchain@stable
1282- - uses : Swatinem/rust-cache@v2
1283- - name : build and test all features individually
1266+ - name : build and test all programs individually
12841267 shell : bash
12851268 run : |
12861269 CARGO_FEATURES_OPTION='--features=${{ matrix.job.features }}' ;
12871270 for f in $(util/show-utils.sh ${CARGO_FEATURES_OPTION})
12881271 do
1289- echo "Running tests with --features=$f and --no-default-features "
1290- cargo test --features=$f --no-default-features
1272+ echo "Building and testing $f "
1273+ cargo test -p "uu_$f" -p coreutils - -features=$f --no-default-features
12911274 done
12921275
12931276 test_selinux :
0 commit comments