Skip to content

fix(ci): add dummy arm build #61

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Dec 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 0
# need to setup to avoid https://goreleaser.com/deprecations/#builds-for-darwinarm64
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Download macos
uses: actions/download-artifact@v2
with:
Expand All @@ -68,8 +73,11 @@ jobs:
- name: Correct goreleaser prebuilt path
run: |
# as it is the format goreleaser expects. See .goreleaser.yml -> prebuilt -> path
mv build/awsu-ubuntu-latest-amd64 build/awsu_linux_amd64
mv build/awsu-macos-latest-amd64 build/awsu_darwin_amd64
# we need at least an arm url for brew: https://github.com/kreuzwerker/homebrew-taps/issues/11
cp build/awsu-ubuntu-latest-amd64 build/awsu_linux_amd64
cp build/awsu-ubuntu-latest-amd64 build/awsu_linux_arm64
cp build/awsu-macos-latest-amd64 build/awsu_darwin_amd64
cp build/awsu-macos-latest-amd64 build/awsu_darwin_arm64
ls -lash build
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
Expand Down
14 changes: 11 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,19 @@ jobs:
name: awsu-${{ matrix.os }}-amd64
path: build/awsu-${{ matrix.os }}-amd64

release-test:
release:
runs-on: ubuntu-latest
needs: [artifact-build]
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
# need to setup to avoid https://goreleaser.com/deprecations/#builds-for-darwinarm64
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Download macos
uses: actions/download-artifact@v2
with:
Expand All @@ -62,8 +67,11 @@ jobs:
- name: Correct goreleaser prebuilt path
run: |
# as it is the format goreleaser expects. See .goreleaser.yml -> prebuilt -> path
mv build/awsu-ubuntu-latest-amd64 build/awsu_linux_amd64
mv build/awsu-macos-latest-amd64 build/awsu_darwin_amd64
# we need at least an arm url for brew: https://github.com/kreuzwerker/homebrew-taps/issues/11
cp build/awsu-ubuntu-latest-amd64 build/awsu_linux_amd64
cp build/awsu-ubuntu-latest-amd64 build/awsu_linux_arm64
cp build/awsu-macos-latest-amd64 build/awsu_darwin_amd64
cp build/awsu-macos-latest-amd64 build/awsu_darwin_arm64
ls -lash build
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
Expand Down
2 changes: 2 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ builds:
- darwin
goarch:
- amd64
- arm64
prebuilt:
path: build/awsu_{{ .Os }}_{{ .Arch }}
archives:
- replacements:
linux: Linux
darwin: Darwin
amd64: x86_64
arm64: arm
checksum:
name_template: 'checksums.txt'
snapshot:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION := "2.3.3"
VERSION := "2.3.9"

BUILD := $(shell git rev-parse --short HEAD)
FLAGS := "-s -w -X=main.build=$(BUILD) -X=main.time=`TZ=UTC date '+%FT%TZ'` -X=main.version=$(VERSION)"
Expand Down