Skip to content

Commit

Permalink
Merge pull request #51 from supabase/da/add-arm-build
Browse files Browse the repository at this point in the history
Add an ARM cross-compilation build step.
  • Loading branch information
inian authored Dec 13, 2020
2 parents 71c1fe6 + a2ccc65 commit c97ae65
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
repo: gotrue
excludes: prerelease, draft

- run: tar -czvf gotrue-${{ steps.releases.outputs.release }}.tar.gz gotrue
- run: tar -czvf gotrue-${{ steps.releases.outputs.release }}.tar.gz gotrue gotrue-arm64

- uses: AButler/upload-release-assets@v2.0
with:
Expand All @@ -83,5 +83,3 @@ jobs:
password: ${{ secrets.DOCKER_PASSWORD }}
repository: ${{ secrets.DOCKER_REPO }}
tags: latest,${{ steps.releases.outputs.release }}


1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.env
vendor/
gotrue
gotrue-arm64

.DS_Store
.vscode
Expand Down
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
.PHONY: all build deps image lint migrate test vet
CHECK_FILES?=$$(go list ./... | grep -v /vendor/)
FLAGS?=-ldflags "-X github.com/netlify/gotrue/cmd.Version=`git rev-parse HEAD`"

help: ## Show this help.
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {sub("\\\\n",sprintf("\n%22c"," "), $$2);printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)

all: lint vet build ## Run the tests and build the binary.

build: ## Build the binary.
go build -ldflags "-X github.com/netlify/gotrue/cmd.Version=`git rev-parse HEAD`"
go build $(FLAGS)
GOOS=linux GOARCH=arm64 go build $(FLAGS) -o gotrue-arm64

deps: ## Install dependencies.
@go get -u github.com/gobuffalo/pop/soda
Expand Down

0 comments on commit c97ae65

Please sign in to comment.