From a5f1b81c6ecf3b13583ba23a8951aac1dc9bb5b0 Mon Sep 17 00:00:00 2001 From: Masahiro Kondo Date: Sat, 20 Apr 2024 21:41:07 +0900 Subject: [PATCH] update --- .github/workflows/go.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 1b9c67c..fd8dc05 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -27,14 +27,16 @@ jobs: run: | GOOS=linux GOARCH=amd64 go build -o build/linux/sbgraph main.go GOOS=windows GOARCH=amd64 go build -o build/windows/sbgraph.exe main.go - GOOS=darwin GOARCH=amd64 go build -o build/macos/sbgraph main.go + GOOS=darwin GOARCH=amd64 go build -o build/macos-amd64/sbgraph main.go + GOOS=darwin GOARCH=arm64 go build -o build/macos-arm64/sbgraph main.go - name: Archive if: startsWith(github.ref, 'refs/tags/') run: | (cd build/linux && tar cfvz ../sbgraph-linux-amd64.tar.gz sbgraph) (cd build/windows && tar cfvz ../sbgraph-windows-amd64.tar.gz sbgraph.exe) - (cd build/macos && tar cfvz ../sbgraph-darwin-amd64.tar.gz sbgraph) + (cd build/macos-amd64 && tar cfvz ../sbgraph-darwin-amd64.tar.gz sbgraph) + (cd build/macos-arm64 && tar cfvz ../sbgraph-darwin-arm64.tar.gz sbgraph) - name: Publish if: startsWith(github.ref, 'refs/tags/')