Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion .github/workflows/run-gnu-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
branches:
- 'main'

permissions:
contents: write # Publish binary instead of discarding

jobs:
native:
name: Run GNU tests (native)
Expand Down Expand Up @@ -46,12 +49,27 @@ jobs:
name: gnu-test-failures
path: uutils-util-linux/.reference/

- name: Run GNU tests
- name: Run GNU tests & package
env:
GNU_PROJECT_DIR: ${{ github.workspace }}/gnu-util-linux
run: |
cd uutils-util-linux
./scripts/run-tests.sh
strip -s target/release/util-linux
zstd -19 target/release/util-linux -o ../util-linux-x86_64-unknown-linux-gnu.zst
- name: Publish latest commit
uses: softprops/action-gh-release@v3
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
with:
tag_name: latest-commit
body: |
commit: ${{ github.sha }}
draft: false
prerelease: true
files: |
util-linux-x86_64-unknown-linux-gnu.zst
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Update test baseline
if: github.ref == 'refs/heads/main'
Expand Down
Loading