Skip to content

Commit

Permalink
Use upx action and remove from mac
Browse files Browse the repository at this point in the history
upx isn't supported for mac
  • Loading branch information
braheezy committed Mar 2, 2024
1 parent 0c8c61b commit 15cf93e
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,13 @@ jobs:
run: go get ./...

- name: Build
run: |
go build -ldflags="-s -w" -trimpath -buildvcs=false -v .
upx --brute goqoa.exe
run: go build -ldflags="-s -w" -trimpath -buildvcs=false -v .

- name: Run UPX
uses: crazy-max/ghaction-upx@v3
with:
files: goqoa.exe
args: --brute

- name: Go Test
run: go test -v ./...
Expand Down Expand Up @@ -57,9 +61,7 @@ jobs:
run: go get ./...

- name: Build
run: |
go build -ldflags="-s -w" -trimpath -buildvcs=false -o goqoa-mac -v .
upx --brute goqoa-mac
run: go build -ldflags="-s -w" -trimpath -buildvcs=false -o goqoa-mac -v .

- name: Go Test
run: go test -v ./...
Expand Down

0 comments on commit 15cf93e

Please sign in to comment.