From 4df1fc0a8906f0f641cfe2909bb75ab30c016803 Mon Sep 17 00:00:00 2001 From: Tom Ashley Date: Mon, 20 Apr 2026 16:11:35 +0100 Subject: [PATCH] chore: build an amd64 asset for x86, upload to shared-services bucket --- .github/workflows/release.yml | 8 +++++++- Makefile | 19 ++++++++++++++++--- 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f718a991a..1b7903a19 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -190,9 +190,15 @@ jobs: FULL_NOTES=$(printf "%s\n\n%s\n" "$EXISTING_NOTES" "$CHECKSUM_CONTENT") GH_TOKEN='${{ github.token }}' gh release edit $RELEASE_NAME -n "$FULL_NOTES" - GH_TOKEN='${{ github.token }}' gh release upload $RELEASE_NAME ./auth-v$RELEASE_VERSION-x86.tar.gz ./auth-v$RELEASE_VERSION-arm64.tar.gz ./auth-v$RELEASE_VERSION-arm64.tar.xz ./auth-v$RELEASE_VERSION-darwin-arm64.tar.gz + GH_TOKEN='${{ github.token }}' gh release upload $RELEASE_NAME \ + ./auth-v$RELEASE_VERSION-x86.tar.gz \ + ./auth-v$RELEASE_VERSION-arm64.tar.gz \ + ./auth-v$RELEASE_VERSION-darwin-arm64.tar.gz \ + ./auth-v$RELEASE_VERSION-amd64.tar.xz \ + ./auth-v$RELEASE_VERSION-arm64.tar.xz # Upload to Supabase internal bucket + aws s3 cp ./auth-v$RELEASE_VERSION-amd64.tar.xz s3://supabase-internal-artifacts/auth/$RELEASE_VERSION/ aws s3 cp ./auth-v$RELEASE_VERSION-arm64.tar.xz s3://supabase-internal-artifacts/auth/$RELEASE_VERSION/ publish: diff --git a/Makefile b/Makefile index 7e816aade..9461aa6e6 100644 --- a/Makefile +++ b/Makefile @@ -23,11 +23,12 @@ BUILD_CMD = go build \ -buildvcs=false \ -ldflags "$(BUILD_LD_FLAGS)$(2)" -RELEASE_TARGETS = x86 arm64 darwin-arm64 arm64-strip +RELEASE_TARGETS = x86 arm64 darwin-arm64 amd64-strip arm64-strip RELEASE_ARCHIVES = \ auth-$(VERSION)-x86.tar.gz \ auth-$(VERSION)-arm64.tar.gz \ auth-$(VERSION)-darwin-arm64.tar.gz \ + auth-$(VERSION)-amd64.tar.xz \ auth-$(VERSION)-arm64.tar.xz @@ -36,9 +37,9 @@ help: ## Show this help. all: vet sec static build ## Run the tests and build the binary. -build: auth auth-arm64 auth-darwin-arm64 ## Build the binaries. +build: auth auth-amd64 auth-arm64 auth-darwin-arm64 ## Build the binaries. -build-strip: auth-arm64-strip ## Build a stripped binary, for which the version file needs to be rewritten. +build-strip: auth-amd64-strip auth-arm64-strip ## Build a stripped binary, for which the version file needs to be rewritten. auth: deps CGO_ENABLED=0 $(call BUILD_CMD,$(@),) @@ -46,12 +47,18 @@ auth: deps auth-x86: deps CGO_ENABLED=0 GOOS=linux GOARCH=amd64 $(call BUILD_CMD,$(@),) +auth-amd64: deps + CGO_ENABLED=0 GOOS=linux GOARCH=amd64 $(call BUILD_CMD,$(@),) + auth-arm64: deps CGO_ENABLED=0 GOOS=linux GOARCH=arm64 $(call BUILD_CMD,$(@),) auth-darwin-arm64: deps CGO_ENABLED=0 GOOS=linux GOARCH=arm64 $(call BUILD_CMD,$(@),) +auth-amd64-strip: deps + CGO_ENABLED=0 GOOS=linux GOARCH=amd64 $(call BUILD_CMD,$(@), -s) + auth-arm64-strip: deps CGO_ENABLED=0 GOOS=linux GOARCH=arm64 $(call BUILD_CMD,$(@), -s) @@ -73,6 +80,12 @@ auth-$(VERSION)-%.tar.gz: \ release-%/gotrue | migrations tar -C $( $(@) + auth-$(VERSION)-arm64.tar.xz: \ release-arm64-strip/auth \ release-arm64-strip/gotrue | migrations