Skip to content

Commit

Permalink
fix: amd64 build for darwin in release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nange committed Dec 16, 2024
1 parent 5a391a9 commit 569faac
Showing 1 changed file with 42 additions and 11 deletions.
53 changes: 42 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,25 +65,19 @@ jobs:
name: Release ${{ github.ref_name }}
body: TODO
files: bin/*.zip
macos:
macos-arm64:
runs-on: macOS-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'

- name: Build
run: |
make easyss
make easyss-server
- name: Pack
run: |
cd bin
zip easyss-darwin-amd64.zip ./easyss
zip easyss-server-darwin-amd64.zip ./easyss-server
- name: Build Arm64
run: |
GOOS=darwin GOARCH=arm64 make easyss
Expand All @@ -98,4 +92,41 @@ jobs:
with:
name: Release ${{ github.ref_name }}
body: TODO
files: bin/*.zip
files: bin/*.zip

macos-amd64:
runs-on: macOS-13
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'

- name: Build Amd64
run: |
GOOS=darwin GOARCH=amd64 make easyss
GOOS=darwin GOARCH=amd64 make easyss-server
- name: Pack Amd64
run: |
cd bin
zip easyss-darwin-amd64.zip ./easyss
zip easyss-server-darwin-amd64.zip ./easyss-server
- name: Set outputs
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

- name: Nightly Release
uses: softprops/action-gh-release@v2
with:
name: Nightly-${{ steps.vars.outputs.sha_short }}
tag_name: nightly-${{ steps.vars.outputs.sha_short }}
prerelease: true
body: For testing and development only
files: bin/*.zip

0 comments on commit 569faac

Please sign in to comment.