Skip to content

Commit

Permalink
chore: add arm64 builds
Browse files Browse the repository at this point in the history
  • Loading branch information
BigJk committed May 22, 2024
1 parent d973e28 commit 3b52d8b
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/docker-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ jobs:
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
context: .
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
52 changes: 51 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,4 +145,54 @@ jobs:
- name: Release
uses: softprops/action-gh-release@v1
with:
files: end_of_eden_gl-${{ github.ref_name }}-macos-amd64.zip
files: end_of_eden_gl-${{ github.ref_name }}-macos-amd64.zip
release-macos-term-arm64:
permissions: write-all
name: release macos/arm64 term
runs-on: macos-14
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Fetch Go
uses: actions/setup-go@v4
with:
go-version: '^1.21'
- name: Build
run: |
go build -ldflags="-X 'github.com/BigJk/end_of_eden/internal/git.Tag=${{ github.ref_name }}' -X 'github.com/BigJk/end_of_eden/internal/git.CommitHash=${{ github.sha }}'" -o end_of_eden -tags ebitenginesinglethread ./cmd/game
export BIN=end_of_eden_term-$(basename ${GITHUB_REF})-macos-arm64
mkdir $BIN
cp ./end_of_eden $BIN/end_of_eden
cp -r ./assets $BIN/assets/
zip -r $BIN.zip $BIN
- name: Release
uses: softprops/action-gh-release@v1
with:
files: end_of_eden_term-${{ github.ref_name }}-macos-arm64.zip
release-macos-gl-arm64:
permissions: write-all
name: release macos/arm64 gl
runs-on: macos-14
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Fetch XCode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Fetch Go
uses: actions/setup-go@v4
with:
go-version: '^1.21'
- name: Build
run: |
go build -ldflags="-X 'github.com/BigJk/end_of_eden/internal/git.Tag=${{ github.ref_name }}' -X 'github.com/BigJk/end_of_eden/internal/git.CommitHash=${{ github.sha }}'" -o end_of_eden -tags ebitenginesinglethread ./cmd/game_win
export BIN=end_of_eden_gl-$(basename ${GITHUB_REF})-macos-arm64
mkdir $BIN
cp ./end_of_eden $BIN/end_of_eden
cp -r ./assets $BIN/assets/
zip -r $BIN.zip $BIN
- name: Release
uses: softprops/action-gh-release@v1
with:
files: end_of_eden_gl-${{ github.ref_name }}-macos-arm64.zip

0 comments on commit 3b52d8b

Please sign in to comment.