Skip to content

Commit

Permalink
ci: Cross compile for darwin/arm64/M1 chip
Browse files Browse the repository at this point in the history
Totally forgot that when cross-compiling CGO is totally disabled by
default (not only for darwin/arm64). Adding this made the project build
locally but this is still offered as a best-effor, no idea if it will
work or not on a real M1 mac.

Related issue: #3.
  • Loading branch information
jorgelbg committed Jul 20, 2021
1 parent 3c4f924 commit 45ffb97
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ builds:
-
main: ./main.go
binary: pinentry-touchid
env:
- CGO_ENABLED=1
goos:
- darwin
goarch:
- amd64
# arm64/m1 macs are currently unsupported see
# https://github.com/jorgelbg/pinentry-touchid/issues/3
# - arm64
- arm64
mod_timestamp: '{{ .CommitTimestamp }}'

# Generate/update a homebrew formula
Expand Down

0 comments on commit 45ffb97

Please sign in to comment.