Skip to content

Commit 5d08be1

Browse files
committed
feat(action): add osx m1 release
1 parent 1280258 commit 5d08be1

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@ jobs:
2020
- name: build
2121
env:
2222
RELEASE_VERSION: ${{ github.ref_name }}
23-
run: ./scripts/binary.sh darwin && ./scripts/binary.sh windows && ./scripts/binary.sh linux
23+
run: ./scripts/binary.sh darwin && ./scripts/binary.sh darwin-m1 && ./scripts/binary.sh windows && ./scripts/binary.sh linux
2424
- name: update
2525
uses: softprops/action-gh-release@v1
2626
if: startsWith(github.ref, 'refs/tags/')
2727
with:
2828
files: |
2929
dist/docker-debug-darwin-amd64
30+
dist/docker-debug-darwin-arm64
3031
dist/docker-debug-linux-amd64
3132
dist/docker-debug-windows-amd64.exe

scripts/variables.darwin-m1.env

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export GOOS=darwin
2+
export GOARCH=arm64
3+
4+
export TARGET="dist/docker-debug-$GOOS-$GOARCH"

0 commit comments

Comments
 (0)