Skip to content

Commit

Permalink
chore: obfuscate Windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
pskrwe committed Feb 22, 2024
1 parent 96bbb82 commit 892d411
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 6 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ jobs:
bundler-cache: true
- run: gem install asciidoctor

- name: Install gotestsum
run: go install gotest.tools/gotestsum@latest
- name: Install Go tools
run: |
go install gotest.tools/gotestsum@latest
go install mvdan.cc/garble@latest
- name: Init go
run: |
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ jobs:
with:
go-version: ${{ matrix.go-version }}

- name: Install gotestsum
run: go install gotest.tools/gotestsum@latest
- name: Install Go tools
run: |
go install gotest.tools/gotestsum@latest
go install mvdan.cc/garble@latest
- name: Init go
run: |
Expand Down
16 changes: 14 additions & 2 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,30 @@ before:
- asciidoctor -a reproducible -b html5 -o out/html/git-age.html docs/git-age.adoc

builds:
- env:
- id: unix
env:
- CGO_ENABLED=0
binary: git-age
ldflags:
- "-s -w -X github.com/prskr/git-age/handlers/cli.version={{.Tag}} -X github.com/prskr/git-age/handlers/cli.commit={{.Commit}} -X github.com/prskr/git-age/handlers/cli.date={{.Date}}"
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
- id: windows
gobinary: garble
env:
- CGO_ENABLED=0
binary: git-age
ldflags:
- "-s -w -X github.com/prskr/git-age/handlers/cli.version={{.Tag}} -X github.com/prskr/git-age/handlers/cli.commit={{.Commit}} -X github.com/prskr/git-age/handlers/cli.date={{.Date}}"
goos:
- windows
goarch:
- amd64
- arm64

archives:
- format: tar.gz
Expand Down

0 comments on commit 892d411

Please sign in to comment.