Skip to content

Commit 3f00bdf

Browse files
Merge branch 'main' into fix-windows-find-ls-metadata
2 parents eab1bfa + fc446ab commit 3f00bdf

36 files changed

Lines changed: 3562 additions & 290 deletions

File tree

.github/workflows/audit.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Security audit
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *"
6+
jobs:
7+
audit:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v6
11+
with:
12+
persist-credentials: false
13+
- uses: rustsec/audit-check@v2
14+
with:
15+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/codspeed.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CodSpeed
2+
3+
on:
4+
push:
5+
branches:
6+
- "main"
7+
pull_request:
8+
# `workflow_dispatch` allows CodSpeed to trigger backtest
9+
# performance analysis in order to generate initial data.
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents: read
14+
id-token: write
15+
16+
jobs:
17+
codspeed:
18+
name: Run benchmarks
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- name: Setup Rust toolchain, cache and cargo-codspeed binary
24+
uses: moonrepo/setup-rust@v0
25+
with:
26+
channel: stable
27+
cache-target: release
28+
bins: cargo-codspeed
29+
30+
- name: Build the benchmark target(s)
31+
run: cargo codspeed build
32+
33+
- name: Run the benchmarks
34+
uses: CodSpeedHQ/action@v4
35+
with:
36+
mode: simulation
37+
run: cargo codspeed run

.github/workflows/compat.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
on: [push, pull_request]
22

33
name: External-testsuites
4-
4+
env:
5+
CARGO_INCREMENTAL: "0"
56
jobs:
67
gnu-tests:
78
permissions:
89
actions: read
10+
contents: write # Publish binaries instead of discarding
911

1012
name: Run GNU findutils tests
1113
runs-on: ubuntu-latest
@@ -40,8 +42,22 @@ jobs:
4042
shell: bash
4143
run: |
4244
cd findutils
43-
export CARGO_INCREMENTAL=0
4445
bash util/build-gnu.sh ||:
46+
install --strip -Dm755 target/release/{find,xargs} -t findutils-x86_64-unknown-linux-gnu
47+
ZSTD_CLEVEL=19 tar --zstd -caf ../findutils-x86_64-unknown-linux-gnu.tar.zst findutils-x86_64-unknown-linux-gnu
48+
- name: Publish latest commit
49+
uses: softprops/action-gh-release@v3
50+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
51+
with:
52+
tag_name: latest-commit
53+
body: |
54+
commit: ${{ github.sha }}
55+
draft: false
56+
prerelease: true
57+
files: |
58+
findutils-x86_64-unknown-linux-gnu.tar.zst
59+
env:
60+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4561
- name: Extract testing info
4662
shell: bash
4763
run: |

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ jobs:
272272
# Write and read notes from a file to avoid quoting breaking things
273273
echo "$ANNOUNCEMENT_BODY" > $RUNNER_TEMP/notes.txt
274274
275-
gh release create "${{ needs.plan.outputs.tag }}" --target "$RELEASE_COMMIT" $PRERELEASE_FLAG --title "$ANNOUNCEMENT_TITLE" --notes-file "$RUNNER_TEMP/notes.txt" artifacts/*
275+
gh release create "${{ needs.plan.outputs.tag }}" --draft --target "$RELEASE_COMMIT" $PRERELEASE_FLAG --title "$ANNOUNCEMENT_TITLE" --notes-file "$RUNNER_TEMP/notes.txt" artifacts/*
276276
277277
announce:
278278
needs:

.pre-commit-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ repos:
1515
pass_filenames: false
1616
types: [file, rust]
1717
language: system
18+
ci:
19+
skip: [rust-linting, rust-clippy]

CONTRIBUTING.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ check out these documents:
1111
- Our community's [CODE_OF_CONDUCT.md](./CODE_OF_CONDUCT.md).
1212
- [DEVELOPMENT.md](./DEVELOPMENT.md) for setting up your development
1313
environment.
14+
- Our [Review Guidelines](https://uutils.github.io/reviews/) for what we expect
15+
from a pull request and how reviews are done.
1416

1517
Now follows a very important warning:
1618

@@ -231,10 +233,6 @@ you contribute must at least compile without warnings for all platforms in the
231233
CI. However, you can use `#[cfg(...)]` attributes to create platform dependent
232234
features.
233235

234-
**Tip:** For Windows, Microsoft provides some images (VMWare, Hyper-V,
235-
VirtualBox and Parallels) for development:
236-
<https://developer.microsoft.com/windows/downloads/virtual-machines/>
237-
238236
## Licensing
239237

240238
uutils is distributed under the terms of the MIT License; see the `LICENSE` file

0 commit comments

Comments
 (0)