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 :
@@ -848,16 +855,8 @@ jobs:
848855 run : |
849856 ## Test
850857 ${{ steps.vars.outputs.CARGO_CMD }} ${{ steps.vars.outputs.CARGO_CMD_OPTIONS }} test --target=${{ matrix.job.target }} \
851- ${{ steps.vars.outputs.CARGO_TEST_OPTIONS}} ${{ matrix.job.cargo-options }} ${{ steps.vars.outputs.CARGO_FEATURES_OPTION }} ${{ steps.vars.outputs.CARGO_DEFAULT_FEATURES_OPTION }}
852- env :
853- RUST_BACKTRACE : " 1"
854- - name : Test individual utilities
855- if : matrix.job.skip-tests != true
856- shell : bash
857- run : |
858- ## Test individual utilities
859- ${{ steps.vars.outputs.CARGO_CMD }} ${{ steps.vars.outputs.CARGO_CMD_OPTIONS }} test --target=${{ matrix.job.target }} \
860- ${{ matrix.job.cargo-options }} ${{ steps.dep_vars.outputs.CARGO_UTILITY_LIST_OPTIONS }}
858+ ${{ steps.vars.outputs.CARGO_TEST_OPTIONS}} ${{ matrix.job.cargo-options }} ${{ steps.vars.outputs.CARGO_FEATURES_OPTION }} ${{ steps.vars.outputs.CARGO_DEFAULT_FEATURES_OPTION }} \
859+ ${{ steps.dep_vars.outputs.CARGO_UTILITY_LIST_OPTIONS }} -p coreutils
861860 env :
862861 RUST_BACKTRACE : " 1"
863862 - name : Archive executable artifacts
@@ -928,6 +927,7 @@ jobs:
928927 env :
929928 SCCACHE_GHA_ENABLED : " true"
930929 RUSTC_WRAPPER : " sccache"
930+ CARGO_INCREMENTAL : 0
931931 strategy :
932932 fail-fast : false
933933 matrix :
@@ -1009,6 +1009,7 @@ jobs:
10091009 env :
10101010 SCCACHE_GHA_ENABLED : " true"
10111011 RUSTC_WRAPPER : " sccache"
1012+ CARGO_INCREMENTAL : 0
10121013 strategy :
10131014 fail-fast : false
10141015 matrix :
@@ -1102,6 +1103,7 @@ jobs:
11021103 env :
11031104 SCCACHE_GHA_ENABLED : " true"
11041105 RUSTC_WRAPPER : " sccache"
1106+ CARGO_INCREMENTAL : 0
11051107 strategy :
11061108 fail-fast : false
11071109 matrix :
@@ -1226,7 +1228,7 @@ jobs:
12261228 fail_ci_if_error : false
12271229
12281230 test_separately :
1229- name : Separate Builds
1231+ name : Separate Builds (individual and coreutils)# duplicated with other CI, but has better appearance
12301232 runs-on : ${{ matrix.job.os }}
12311233 strategy :
12321234 fail-fast : false
@@ -1236,48 +1238,21 @@ jobs:
12361238 - { os: macos-latest , features: feat_os_macos }
12371239 - { os: windows-latest , features: feat_os_windows }
12381240 steps :
1239- - uses : actions/checkout@v6
1240- with :
1241- persist-credentials : false
1242- - uses : dtolnay/rust-toolchain@stable
1243- - uses : Swatinem/rust-cache@v2
1244- - name : build and test all programs individually
1245- shell : bash
1246- run : |
1247- CARGO_FEATURES_OPTION='--features=${{ matrix.job.features }}' ;
1248- for f in $(util/show-utils.sh ${CARGO_FEATURES_OPTION})
1249- do
1250- echo "Building and testing $f"
1251- cargo test -p "uu_$f"
1252- done
1253-
1254- test_all_features :
1255- name : Test all features separately
1256- needs : [ min_version, deps ]
1257- runs-on : ${{ matrix.job.os }}
1258- strategy :
1259- fail-fast : false
1260- matrix :
1261- job :
1262- - { os: ubuntu-latest , features: feat_os_unix }
1263- - { os: macos-latest , features: feat_os_macos }
1264- # - { os: windows-latest , features: feat_os_windows } https://github.com/uutils/coreutils/issues/7044
1265- steps :
12661241 - uses : actions/checkout@v6
12671242 with :
12681243 persist-credentials : false
12691244 - name : Avoid no space left on device
12701245 run : sudo rm -rf /usr/share/dotnet /usr/local/lib/android &
12711246 - uses : dtolnay/rust-toolchain@stable
12721247 - uses : Swatinem/rust-cache@v2
1273- - name : build and test all features individually
1248+ - name : build and test all programs individually
12741249 shell : bash
12751250 run : |
12761251 CARGO_FEATURES_OPTION='--features=${{ matrix.job.features }}' ;
12771252 for f in $(util/show-utils.sh ${CARGO_FEATURES_OPTION})
12781253 do
1279- echo "Running tests with --features=$f and --no-default-features "
1280- 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
12811256 done
12821257
12831258 test_selinux :
0 commit comments