Skip to content

Commit

Permalink
feat: support apple m1
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Oct 19, 2021
1 parent 0ef3d57 commit 54b4fb6
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,24 @@ builds:
- amd64
goos:
- darwin
-

id: kratos-sqlite-darwin-arm
flags:
- -tags
- sqlite
ldflags:
- -s -w -X github.com/ory/kratos/driver/config.Version={{.Tag}} -X github.com/ory/kratos/driver/config.Commit={{.FullCommit}} -X github.com/ory/kratos/driver/config.Date={{.Date}}
# - "-extldflags '-static'"
binary: kratos
env:
- CGO_ENABLED=1
- CC=oa64-clang
- CXX=oa64-clang++
goarch:
- arm64
goos:
- darwin

-
id: kratos-sqlite-linux
Expand Down Expand Up @@ -105,13 +123,15 @@ archives:
- id: kratos-sqlite
builds:
- kratos-sqlite-windows
- kratos-sqlite-darwin-arm
- kratos-sqlite-darwin
- kratos-sqlite-linux
replacements:
darwin: macos
386: 32bit
amd64: 64bit
arm: arm32
arm64: arm64
format_overrides:
-
goos: windows
Expand Down Expand Up @@ -150,6 +170,7 @@ archives:
386: 32bit
amd64: 64bit
arm: arm32
arm64: arm64
format_overrides:
- goos: windows
format: zip
Expand Down

0 comments on commit 54b4fb6

Please sign in to comment.