From 9a7c183c62c5ee1db87968ff3c24cc178740609a Mon Sep 17 00:00:00 2001 From: oech3 <> Date: Fri, 22 May 2026 21:25:33 +0900 Subject: [PATCH] Publish binary from main branch --- .github/workflows/run-gnu-test.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/run-gnu-test.yml b/.github/workflows/run-gnu-test.yml index 3c2a3560..72a5b4bd 100644 --- a/.github/workflows/run-gnu-test.yml +++ b/.github/workflows/run-gnu-test.yml @@ -7,6 +7,9 @@ on: branches: - 'main' +permissions: + contents: write # Publish binary instead of discarding + jobs: native: name: Run GNU tests (native) @@ -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'