From d4747aa0b629230684424ad43232643c0563db9d Mon Sep 17 00:00:00 2001 From: oech3 <79379754+oech3@users.noreply.github.com> Date: Sat, 24 Jan 2026 20:15:30 +0900 Subject: [PATCH] Publish binary from main instead of discarding --- .github/workflows/compat.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/compat.yml b/.github/workflows/compat.yml index 7f5278f5..432a6e18 100644 --- a/.github/workflows/compat.yml +++ b/.github/workflows/compat.yml @@ -1,11 +1,13 @@ on: [push, pull_request] name: External-testsuites - +env: + CARGO_INCREMENTAL: "0" jobs: gnu-tests: permissions: actions: read + contents: write # Publish binaries instead of discarding name: Run GNU findutils tests runs-on: ubuntu-latest @@ -40,8 +42,22 @@ jobs: shell: bash run: | cd findutils - export CARGO_INCREMENTAL=0 bash util/build-gnu.sh ||: + install --strip -Dm755 target/release/{find,xargs} -t findutils-x86_64-unknown-linux-gnu + ZSTD_CLEVEL=19 tar --zstd -caf ../findutils-x86_64-unknown-linux-gnu.tar.zst findutils-x86_64-unknown-linux-gnu + - name: Publish latest commit + uses: softprops/action-gh-release@v2 + if: github.event_name == 'push' && github.ref == 'refs/heads/main' + with: + tag_name: latest-commit + body: | + commit: ${{ github.sha }} + draft: false + prerelease: true + files: | + findutils-x86_64-unknown-linux-gnu.tar.zst + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Extract testing info shell: bash run: |