Skip to content

Commit

Permalink
Merge pull request #88 from rigup/mac-m1-support
Browse files Browse the repository at this point in the history
feat: add support for Mac M1 chips
  • Loading branch information
ghardak authored Mar 14, 2023
2 parents b5fc63c + 07fb326 commit 5076c66
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
with:
go-version: 1.16
- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@master
uses: google-github-actions/setup-gcloud@v1.0.1
with:
project_id: ${{ secrets.GCP_PROJECT_ID }}
service_account_key: ${{ secrets.GCP_SA_KEY }}
Expand Down
1 change: 1 addition & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ builds:
- darwin
goarch:
- amd64
- arm64
ldflags:
- -s -w -X 'github.com/rigup/ephemeral-iam/internal/appconfig.Version=v{{.Version}}'
archives:
Expand Down
24 changes: 24 additions & 0 deletions internal/appconfig/arch_util/vars_arm64.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// Copyright 2021 Workrise Technologies Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build arm64
// +build arm64

package archutil

const (
// FormattedArch is the string representation of the GOARCH used in
// ephemeral-iam release tarballs.
FormattedArch = "arm_64"
)

0 comments on commit 5076c66

Please sign in to comment.