Skip to content

Commit

Permalink
GH Actions: Strip binary before uploading it for a release.
Browse files Browse the repository at this point in the history
  • Loading branch information
bionade24 committed Sep 17, 2024
1 parent bc4d744 commit c79a7b4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ jobs:
- name: Run tests
run: cabal test all

- name: Strip binary for release
if: startsWith(github.ref, 'refs/tags/')
run: strip dist-newstyle/build/x86_64-linux/ghc-*/histcleaner-*/x/histcleaner/build/histcleaner/histcleaner

- name: Upload release assets
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
Expand Down

0 comments on commit c79a7b4

Please sign in to comment.