Skip to content

Commit 6909657

Browse files
committed
CICD.yml: Merge 2 "spearately"
1 parent d6df52f commit 6909657

File tree

1 file changed

+2
-31
lines changed

1 file changed

+2
-31
lines changed

.github/workflows/CICD.yml

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1218,7 +1218,7 @@ jobs:
12181218
fail_ci_if_error: false
12191219

12201220
test_separately:
1221-
name: Separate Builds
1221+
name: Separate Builds (individual and coreutils)# duplicated with other CI, but has better appearance
12221222
runs-on: ${{ matrix.job.os }}
12231223
strategy:
12241224
fail-fast: false
@@ -1240,36 +1240,7 @@ jobs:
12401240
for f in $(util/show-utils.sh ${CARGO_FEATURES_OPTION})
12411241
do
12421242
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:
1258-
- uses: actions/checkout@v6
1259-
with:
1260-
persist-credentials: false
1261-
- name: Avoid no space left on device
1262-
run: sudo rm -rf /usr/share/dotnet /usr/local/lib/android &
1263-
- uses: dtolnay/rust-toolchain@stable
1264-
- uses: Swatinem/rust-cache@v2
1265-
- name: build and test all features individually
1266-
shell: bash
1267-
run: |
1268-
CARGO_FEATURES_OPTION='--features=${{ matrix.job.features }}' ;
1269-
for f in $(util/show-utils.sh ${CARGO_FEATURES_OPTION})
1270-
do
1271-
echo "Running tests with --features=$f and --no-default-features"
1272-
cargo test --features=$f --no-default-features
1243+
cargo test -p "uu_$f" -p coreutils --features=$f --no-default-features
12731244
done
12741245
12751246
test_selinux:

0 commit comments

Comments
 (0)