diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c5406d52..2e4dddc5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -41,6 +41,12 @@ jobs: files: 'hack/switch/switcher_linux_amd64' repo-token: ${{ secrets.GITHUB_TOKEN }} release-tag: ${{ steps.build_binary_files.outputs.latest_release_filtered_tag }} + - name: Upload Linux (ARM) binaries to release + uses: AButler/upload-release-assets@v2.0 + with: + files: 'hack/switch/switcher_linux_arm64' + repo-token: ${{ secrets.GITHUB_TOKEN }} + release-tag: ${{ steps.build_binary_files.outputs.latest_release_filtered_tag }} - name: Upload switch script to release uses: AButler/upload-release-assets@v2.0 with: diff --git a/.gitignore b/.gitignore index 7b742184..8277cfe6 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,6 @@ hack/tools/bin/ /hack/switch/switcher_linux_amd64 /hack/switch/switcher_linux_amd64.tar.gz + +/hack/switch/switcher_linux_arm64 +/hack/switch/switcher_linux_arm64.tar.gz diff --git a/Makefile b/Makefile index 9e76eb6d..b98c0692 100644 --- a/Makefile +++ b/Makefile @@ -31,6 +31,7 @@ build: build-switcher .PHONY: build-switcher build-switcher: @env GOOS=linux GOARCH=amd64 go build -ldflags "-w -X github.com/danielfoehrkn/kubeswitch/cmd/switcher.version=${VERSION} -X github.com/danielfoehrkn/kubeswitch/cmd/switcher.buildDate=${DATE}" -o hack/switch/switcher_linux_amd64 ./cmd/main.go + @env GOOS=linux GOARCH=arm64 go build -ldflags "-w -X github.com/danielfoehrkn/kubeswitch/cmd/switcher.version=${VERSION} -X github.com/danielfoehrkn/kubeswitch/cmd/switcher.buildDate=${DATE}" -o hack/switch/switcher_linux_arm64 ./cmd/main.go @env GOOS=darwin GOARCH=amd64 go build -ldflags "-w -X github.com/danielfoehrkn/kubeswitch/cmd/switcher.version=${VERSION} -X github.com/danielfoehrkn/kubeswitch/cmd/switcher.buildDate=${DATE}" -o hack/switch/switcher_darwin_amd64 ./cmd/main.go @env GOOS=darwin GOARCH=arm64 go build -ldflags "-w -X github.com/danielfoehrkn/kubeswitch/cmd/switcher.version=${VERSION} -X github.com/danielfoehrkn/kubeswitch/cmd/switcher.buildDate=${DATE}" -o hack/switch/switcher_darwin_arm64 ./cmd/main.go