Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Add build darwin arm64 #86

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
AC_PASSWORD: ${{ secrets.AC_PASSWORD }}
AC_TEAM_ID: ${{ secrets.AC_TEAM_ID }}
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
-
Expand Down
35 changes: 35 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ builds:
goarch:
- amd64
main: ./cmd/saturn-l2
- id: macos-arm64
env:
- CGO_ENABLED=0
goos:
- darwin
goarch:
- arm64
main: ./cmd/saturn-l2
archives:
- builds:
- saturn
Expand All @@ -43,6 +51,13 @@ archives:
replacements:
darwin: Darwin
amd64: x86_64
- builds:
- macos-arm64
id: macos-arm64-zip
format: zip
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
replacements:
darwin: Darwin
checksum:
name_template: 'checksums.txt'
signs:
Expand All @@ -53,6 +68,26 @@ signs:
args:
- .gon.hcl
artifacts: all
- id: macos-arm64
ids:
- macos-arm64-zip
signature: "${artifact}"
cmd: xcrun
args:
[
"notarytool",
"submit",
"./dist/L2-node_Darwin_arm64.zip",
"--apple-id",
[email protected]",
"--password",
"{{ .Env.AC_PASSWORD }}",
"--team-id",
"{{ .Env.AC_TEAM_ID }}",
"--progress",
"--wait",
]
artifacts: all
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
Expand Down