Skip to content

Commit 7aadd69

Browse files
committed
Publish binary from main instead of discarding
1 parent 398ee76 commit 7aadd69

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/GnuTests.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
- '*'
1111

1212
permissions:
13-
contents: read
13+
contents: write # Publish sed instead of discarding
1414

1515
# End the current execution if there is a new changeset in the PR
1616
concurrency:
@@ -61,7 +61,19 @@ jobs:
6161
run: |
6262
## Build Rust sed binary
6363
cd 'sed'
64-
cargo build --release
64+
cargo build --config=profile.release.strip=true --profile=release #-fast
65+
zstd -19 target/release/sed -o ../sed-x86_64-unknown-linux-gnu.zst
66+
- name: Publish latest commit
67+
uses: softprops/action-gh-release@v2
68+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
69+
with:
70+
tag_name: latest-commit
71+
draft: false
72+
prerelease: true
73+
files: |
74+
sed-x86_64-unknown-linux-gnu.zst
75+
env:
76+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6577

6678
### Run tests
6779
- name: Run GNU sed testsuite

0 commit comments

Comments
 (0)