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

Commit

Permalink
build release support m1
Browse files Browse the repository at this point in the history
  • Loading branch information
momaek committed Feb 22, 2021
1 parent ccec9a2 commit 5e1e8b5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 28 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.15
go-version: 1.16
- name: Check out
uses: actions/checkout@v2

- name: Build
run: make build
run: make build
24 changes: 0 additions & 24 deletions .github/workflows/release.yml

This file was deleted.

9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
build:
build_x86:
GOOS=darwin GOARCH=amd64 go build -o authy-darwin-amd64 main.go

build_m1:
GOOS=darwin GOARCH=arm64 go build -o authy-darwin-arm64 main.go

build: build_x86 build_m1

build_docker:
docker run --rm \
-v "$$PWD":/authy \
Expand All @@ -14,5 +19,5 @@ build_docker:
go build -ldflags="-X 'github.com/momaek/authy/cmd.Version=$$AUTHY_CURRENT_TAG'" -o authy-darwin-amd64 main.go

tar:
tar zcvf authy.tar.gz authy-darwin-amd64 alfredworkflow/Authy.alfredworkflow
tar zcvf authy.tar.gz authy-darwin-amd64 authy-darwin-arm64 alfredworkflow/Authy.alfredworkflow

0 comments on commit 5e1e8b5

Please # to comment.