Skip to content

Commit 0eb4c79

Browse files
Merge branch 'main' into wasi-ln-symlink
2 parents 1b47f1b + c7cf6fd commit 0eb4c79

143 files changed

Lines changed: 2484 additions & 2019 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/CICD.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,7 @@ jobs:
394394
with:
395395
persist-credentials: false
396396
- name: Avoid no space left on device
397+
shell: bash
397398
run: sudo rm -rf /usr/share/dotnet /usr/local/lib/android &
398399
- uses: dtolnay/rust-toolchain@master
399400
with:

.github/workflows/benchmarks.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
benchmarks:
2222
name: Run ${{ matrix.type }} benchmarks for ${{ matrix.package }} (CodSpeed)
2323
runs-on: ubuntu-latest
24+
timeout-minutes: 90
2425
env:
2526
CARGO_INCREMENTAL: 0
2627
strategy:
@@ -35,6 +36,7 @@ jobs:
3536
uu_dd,
3637
uu_df,
3738
uu_du,
39+
uu_echo,
3840
uu_expand,
3941
uu_fold,
4042
uu_hostname,

.github/workflows/code-quality.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
matrix:
7373
job:
7474
- { os: ubuntu-latest , features: all , workspace: true }
75-
- { os: macos-latest , features: feat_os_unix }
75+
- { os: macos-latest , features: all , workspace: true }
7676
- { os: windows-latest , features: feat_os_windows }
7777
- { os: ubuntu-latest , features: feat_wasm , target: wasm32-wasip1 }
7878
steps:

.github/workflows/freebsd.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ jobs:
125125
with:
126126
persist-credentials: false
127127
- name: Avoid no space left on device (Ubuntu runner)
128+
shell: bash
128129
run: sudo rm -rf /usr/share/dotnet /usr/local/lib/android &
129130
- name: Prepare, build and test
130131
uses: vmactions/freebsd-vm@v1.3.9

.github/workflows/ignore-intermittent.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,20 @@ tests/expand/bounded-memory
66
tests/pr/bounded-memory
77
tests/tail/inotify-dir-recreate
88
tests/tail/overlay-headers
9+
tests/tail/pid-pipe
910
tests/tail/retry
1011
tests/tail/tail-n0f
1112
tests/tail/pipe-f
1213
tests/timeout/timeout
1314
tests/tail/symlink
1415
tests/shuf/shuf-reservoir
1516
tests/sort/sort-stale-thread-mem
17+
tests/timeout/timeout-group
1618
tests/tty/tty-eof
1719
tests/misc/stdbuf
20+
tests/misc/tty-eof
1821
tests/misc/usage_vs_getopt
1922
tests/misc/tee
2023
tests/tail/follow-name
2124
tests/rm/isatty
25+
tests/misc/io-errors

.github/workflows/make.yml

Lines changed: 42 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
name: make
22

33
# spell-checker:ignore (abbrev/names) CACHEDIR taiki
4-
# spell-checker:ignore (env/flags) RUSTDOCFLAGS RUSTFLAGS CARGOFLAGS CLEVEL
4+
# spell-checker:ignore (env/flags) CHERE RUSTDOCFLAGS RUSTFLAGS CARGOFLAGS CLEVEL
55
# spell-checker:ignore (jargon) deps softprops toolchain
66
# spell-checker:ignore (people) dawidd
7-
# spell-checker:ignore (shell/tools) nextest sccache zstd
8-
# spell-checker:ignore (misc) bindir busytest defconfig DESTDIR manpages multisize runtest testsuite toybox uutils
7+
# spell-checker:ignore (shell/tools) bsdtar nextest pacman sccache zstd
8+
# spell-checker:ignore (misc) bindir busytest defconfig dynamicbase DESTDIR manpages multisize noconfirm runtest testsuite toybox uutils
99

1010
env:
1111
PROJECT_NAME: coreutils
@@ -93,26 +93,6 @@ jobs:
9393
disable_search: true
9494
flags: makefile,${{ matrix.job.os }}
9595
fail_ci_if_error: false
96-
- name: "`make install PROG_PREFIX=uu- PROFILE=release-small COMPLETIONS=n MANPAGES=n LOCALES=n`"
97-
shell: bash
98-
run: |
99-
set -x
100-
DESTDIR=/tmp/ make install PROG_PREFIX=uu- PROFILE=release-small COMPLETIONS=n MANPAGES=n LOCALES=n
101-
# Check that utils are built with given profile
102-
./target/release-small/true
103-
# Check that the progs have prefix
104-
test -f /tmp/usr/local/bin/uu-tty
105-
test -f /tmp/usr/local/libexec/uu-coreutils/libstdbuf.*
106-
# Check that the manpage is not present
107-
! test -f /tmp/usr/local/share/man/man1/uu-whoami.1
108-
# Check that the completion is not present
109-
! test -f /tmp/usr/local/share/zsh/site-functions/_uu-install
110-
! test -f /tmp/usr/local/share/bash-completion/completions/uu-head.bash
111-
! test -f /tmp/usr/local/share/fish/vendor_completions.d/uu-cat.fish
112-
# don't publish binaries with uu-
113-
make uninstall PROG_PREFIX=uu- PROFILE=release-small COMPLETIONS=n MANPAGES=n LOCALES=n
114-
env:
115-
RUST_BACKTRACE: "1"
11696
- name: "`make install`"
11797
shell: bash
11898
run: |
@@ -292,11 +272,14 @@ jobs:
292272
DESTDIR=/tmp/ make SKIP_UTILS="stdbuf" install
293273
294274
# keep this job minimal to avoid have many duplicated build with CICD
295-
build_makefile-other:
296-
name: Build/Makefile
275+
build_makefile-windows-cygwin:
276+
name: Build MSYS
277+
permissions:
278+
contents: write # Publish cygwin binary
297279
runs-on: ${{ matrix.job.os }}
298280
env:
299281
CARGO_INCREMENTAL: 0
282+
RUSTFLAGS: "-C link-arg=-Wl,--dynamicbase -C link-arg=-Wl,--enable-auto-image-base"
300283
strategy:
301284
fail-fast: false
302285
matrix:
@@ -316,6 +299,40 @@ jobs:
316299
run: |
317300
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
318301
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
302+
- name: "`(x86_64-pc-cygwin) make install PROG_PREFIX=uu- PROFILE=release-small COMPLETIONS=n MANPAGES=n LOCALES=n`"
303+
shell: 'C:\msys64\usr\bin\bash.exe --login -eo pipefail {0}'
304+
run: |
305+
set -x
306+
pacman -Sy --noconfirm --needed make rust base-devel
307+
DESTDIR=/tmp/c make install PROG_PREFIX=uu- PROFILE=release-small COMPLETIONS=n MANPAGES=n LOCALES=n
308+
# Check that utils are built with given profile
309+
./target/release-small/true
310+
# Check that the progs have prefix
311+
test -f /tmp/c/usr/local/bin/uu-tty
312+
test -f /tmp/c/usr/local/libexec/uu-coreutils/libstdbuf.*
313+
# Check that the manpage is not present
314+
! test -f /tmp/c/usr/local/share/man/man1/uu-whoami.1
315+
# Check that the completion is not present
316+
! test -f /tmp/c/usr/local/share/zsh/site-functions/_uu-install
317+
! test -f /tmp/c/usr/local/share/bash-completion/completions/uu-head.bash
318+
! test -f /tmp/c/usr/local/share/fish/vendor_completions.d/uu-cat.fish
319+
# package
320+
mv target/release-small/deps/stdbuf.dll -t /tmp/c/usr/local/bin
321+
bsdtar -caf x86_64-pc-cygwin.tar.zst -C /tmp/c/usr/local bin
322+
env:
323+
CHERE_INVOKING: 1
324+
RUST_BACKTRACE: "1"
325+
- name: Publish
326+
uses: softprops/action-gh-release@v3
327+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
328+
with:
329+
tag_name: latest-commit
330+
draft: false
331+
prerelease: true
332+
files: |
333+
x86_64-pc-cygwin.tar.zst
334+
env:
335+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
319336
- name: "`make build`"
320337
shell: bash
321338
run: |

.github/workflows/wasi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
CARGO_TARGET_WASM32_WASIP1_RUNNER: wasmtime
3838
run: |
3939
# Get all utilities and exclude ones that don't compile for wasm32-wasip1
40-
EXCLUDE="dd|df|du|env|expr|mktemp|more|tac|test"
40+
EXCLUDE="df|du|env|expr|more|tac|test"
4141
UTILS=$(./util/show-utils.sh | tr ' ' '\n' | grep -vE "^($EXCLUDE)$" | sed 's/^/-p uu_/' | tr '\n' ' ')
4242
cargo test --target wasm32-wasip1 --no-default-features $UTILS
4343
- name: Run integration tests via wasmtime

.vscode/cspell.dictionaries/workspace.wordlist.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,9 +364,11 @@ uutils
364364
execfn
365365
fstatfs
366366
getcwd
367+
mkfifoat
367368
setpipe
368369

369370
# * other
371+
auxv
370372
getlimits
371373
weblate
372374
algs

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"cSpell.import": [
33
"./.vscode/cSpell.json"
4-
]
4+
],
5+
"rust-analyzer.check.command": "clippy"
56
}

0 commit comments

Comments
 (0)