Skip to content

Commit

Permalink
process binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
tchoutri committed Jun 24, 2024
1 parent cf73ac8 commit a653f50
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ jobs:
- name: Package the confer-head executable
run: |
CONFER_EXEC=$(cabal list-bin --project-file=cabal.release.project confer:exe:confer)
strip $CONFER_EXEC
upx -9 $CONFER_EXEC
.github/workflows/process-binaries.sh
DIR=$(dirname $CONFER_EXEC)
FILE=$(basename $CONFER_EXEC)
CONFER_EXEC_TAR=confer-head-${{ runner.os }}-$(uname -m).tar.gz
Expand Down Expand Up @@ -116,8 +115,7 @@ jobs:
- name: Tar cabal head executable
run: |
CONFER_EXEC=$(cabal list-bin --project-file=cabal.release.project confer:exe:confer)
strip $CONFER_EXEC
upx -9 $CONFER_EXEC
.github/workflows/process-binaries.sh
DIR=$(dirname $CONFER_EXEC)
FILE=$(basename $CONFER_EXEC)
CONFER_EXEC_TAR=confer-head-${{ runner.os }}-static-$(uname -m).tar.gz
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/process-binaries.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/usr/bin/env bash

CONFER_EXEC=$(cabal list-bin --project-file=cabal.release.project confer:exe:confer)

case "$(uname -s)" in
Linux*) strip $CONFER_EXEC && upx -9 $CONFER_EXEC
Linux*) strip $CONFER_EXEC && upx -9 $CONFER_EXEC;;
Darwin*) strip $CONFER_EXEC;;
esac

0 comments on commit a653f50

Please sign in to comment.