Skip to content

Commit d23df4c

Browse files
oech3sylvestre
authored andcommitted
Publish binary from main instead of discarding
1 parent 8039955 commit d23df4c

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:
@@ -55,7 +55,19 @@ jobs:
5555
run: |
5656
## Build Rust sed binary
5757
cd 'sed'
58-
cargo build --release
58+
cargo build --config=profile.release.strip=true --profile=release #-fast
59+
zstd -19 target/release/sed -o ../sed-x86_64-unknown-linux-gnu.zst
60+
- name: Publish latest commit
61+
uses: softprops/action-gh-release@v2
62+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
63+
with:
64+
tag_name: latest-commit
65+
draft: false
66+
prerelease: true
67+
files: |
68+
sed-x86_64-unknown-linux-gnu.zst
69+
env:
70+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5971

6072
### Run tests
6173
- name: Run GNU sed testsuite

0 commit comments

Comments
 (0)