Skip to content

Commit cd13874

Browse files
committed
Publish binary from main instead of discarding
1 parent 89a5327 commit cd13874

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/compat.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ jobs:
66
gnu-tests:
77
permissions:
88
actions: read
9+
contents: write # Publish binaries instead of discarding
910

1011
name: Run GNU findutils tests
1112
runs-on: ubuntu-latest
@@ -45,7 +46,20 @@ jobs:
4546
shell: bash
4647
run: |
4748
cd findutils
48-
bash util/build-gnu.sh ||:
49+
bash util/build-gnu.sh
50+
install -Dm755 target/release/{find,xargs} -t findutils-x86_64-unknown-linux-gnu
51+
ZSTD_CLEVEL=19 tar --zstd -caf findutils-x86_64-unknown-linux-gnu.tar.zst findutils-x86_64-unknown-linux-gnu
52+
- name: Publish latest commit
53+
uses: softprops/action-gh-release@v2
54+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
55+
with:
56+
tag_name: latest-commit
57+
draft: false
58+
prerelease: true
59+
files: |
60+
findutils-x86_64-unknown-linux-gnu.tar.zst
61+
env:
62+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4963
- name: Extract testing info
5064
shell: bash
5165
run: |

0 commit comments

Comments
 (0)