-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
83 changed files
with
3,083 additions
and
1,658 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
msrv = "1.77.0" | ||
msrv = "1.79.0" | ||
cognitive-complexity-threshold = 24 | ||
missing-docs-in-crate-items = true | ||
check-private-items = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ env: | |
PROJECT_NAME: coreutils | ||
PROJECT_DESC: "Core universal (cross-platform) utilities" | ||
PROJECT_AUTH: "uutils" | ||
RUST_MIN_SRV: "1.77.0" | ||
RUST_MIN_SRV: "1.79.0" | ||
# * style job configuration | ||
STYLE_FAIL_ON_FAULT: true ## (bool) fail the build if a style job contains a fault (error or warning); may be overridden on a per-job basis | ||
|
||
|
@@ -37,6 +37,8 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
- uses: EmbarkStudios/cargo-deny-action@v2 | ||
|
||
style_deps: | ||
|
@@ -54,6 +56,8 @@ jobs: | |
- { os: windows-latest , features: feat_os_windows } | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
- uses: dtolnay/rust-toolchain@nightly | ||
## note: requires 'nightly' toolchain b/c `cargo-udeps` uses the `rustc` '-Z save-analysis' option | ||
## * ... ref: <https://github.com/est31/cargo-udeps/issues/73> | ||
|
@@ -106,13 +110,15 @@ jobs: | |
# - { os: windows-latest , features: feat_os_windows } | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: stable | ||
components: clippy | ||
- uses: Swatinem/rust-cache@v2 | ||
- name: Run sccache-cache | ||
uses: mozilla-actions/[email protected].6 | ||
uses: mozilla-actions/[email protected].7 | ||
- name: Initialize workflow variables | ||
id: vars | ||
shell: bash | ||
|
@@ -159,14 +165,16 @@ jobs: | |
- { os: ubuntu-latest , features: feat_os_unix } | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: ${{ env.RUST_MIN_SRV }} | ||
components: rustfmt | ||
- uses: taiki-e/install-action@nextest | ||
- uses: Swatinem/rust-cache@v2 | ||
- name: Run sccache-cache | ||
uses: mozilla-actions/[email protected].6 | ||
uses: mozilla-actions/[email protected].7 | ||
- name: Initialize workflow variables | ||
id: vars | ||
shell: bash | ||
|
@@ -227,6 +235,8 @@ jobs: | |
- { os: ubuntu-latest , features: feat_os_unix } | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
- uses: dtolnay/rust-toolchain@stable | ||
- uses: Swatinem/rust-cache@v2 | ||
- name: "`cargo update` testing" | ||
|
@@ -250,11 +260,13 @@ jobs: | |
- { os: ubuntu-latest , features: feat_os_unix } | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
- uses: dtolnay/rust-toolchain@stable | ||
- uses: taiki-e/install-action@nextest | ||
- uses: Swatinem/rust-cache@v2 | ||
- name: Run sccache-cache | ||
uses: mozilla-actions/[email protected].6 | ||
uses: mozilla-actions/[email protected].7 | ||
- name: "`make build`" | ||
shell: bash | ||
run: | | ||
|
@@ -304,11 +316,13 @@ jobs: | |
- { os: windows-latest , features: feat_os_windows } | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
- uses: dtolnay/rust-toolchain@stable | ||
- uses: taiki-e/install-action@nextest | ||
- uses: Swatinem/rust-cache@v2 | ||
- name: Run sccache-cache | ||
uses: mozilla-actions/[email protected].6 | ||
uses: mozilla-actions/[email protected].7 | ||
- name: Test | ||
run: cargo nextest run --hide-progress-bar --profile ci --features ${{ matrix.job.features }} | ||
env: | ||
|
@@ -331,11 +345,13 @@ jobs: | |
- { os: windows-latest , features: feat_os_windows } | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
- uses: dtolnay/rust-toolchain@nightly | ||
- uses: taiki-e/install-action@nextest | ||
- uses: Swatinem/rust-cache@v2 | ||
- name: Run sccache-cache | ||
uses: mozilla-actions/[email protected].6 | ||
uses: mozilla-actions/[email protected].7 | ||
- name: Test | ||
run: cargo nextest run --hide-progress-bar --profile ci --features ${{ matrix.job.features }} | ||
env: | ||
|
@@ -355,10 +371,12 @@ jobs: | |
- { os: ubuntu-latest , features: feat_os_unix } | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
- uses: dtolnay/rust-toolchain@stable | ||
- uses: Swatinem/rust-cache@v2 | ||
- name: Run sccache-cache | ||
uses: mozilla-actions/[email protected].6 | ||
uses: mozilla-actions/[email protected].7 | ||
- name: Install dependencies | ||
shell: bash | ||
run: | | ||
|
@@ -485,6 +503,8 @@ jobs: | |
- { os: windows-latest , target: aarch64-pc-windows-msvc , features: feat_os_windows, use-cross: use-cross , skip-tests: true } | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: ${{ env.RUST_MIN_SRV }} | ||
|
@@ -493,7 +513,7 @@ jobs: | |
with: | ||
key: "${{ matrix.job.os }}_${{ matrix.job.target }}" | ||
- name: Run sccache-cache | ||
uses: mozilla-actions/[email protected].6 | ||
uses: mozilla-actions/[email protected].7 | ||
- name: Initialize workflow variables | ||
id: vars | ||
shell: bash | ||
|
@@ -780,9 +800,11 @@ jobs: | |
## VARs setup | ||
echo "TEST_SUMMARY_FILE=busybox-result.json" >> $GITHUB_OUTPUT | ||
- uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
- uses: Swatinem/rust-cache@v2 | ||
- name: Run sccache-cache | ||
uses: mozilla-actions/[email protected].6 | ||
uses: mozilla-actions/[email protected].7 | ||
- name: Install/setup prerequisites | ||
shell: bash | ||
run: | | ||
|
@@ -860,13 +882,15 @@ jobs: | |
TEST_SUMMARY_FILE="toybox-result.json" | ||
outputs TEST_SUMMARY_FILE | ||
- uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: ${{ env.RUST_MIN_SRV }} | ||
components: rustfmt | ||
- uses: Swatinem/rust-cache@v2 | ||
- name: Run sccache-cache | ||
uses: mozilla-actions/[email protected].6 | ||
uses: mozilla-actions/[email protected].7 | ||
- name: Build coreutils as multiple binaries | ||
shell: bash | ||
run: | | ||
|
@@ -935,6 +959,8 @@ jobs: | |
os: [ubuntu-latest, macos-latest, windows-latest] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
- uses: dtolnay/rust-toolchain@stable | ||
- uses: Swatinem/rust-cache@v2 | ||
- name: build and test all programs individually | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.