Skip to content

Commit

Permalink
add ARM macos runner
Browse files Browse the repository at this point in the history
  • Loading branch information
dweymouth committed Nov 23, 2023
1 parent 6f83727 commit 4055b3a
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/build-macos-arm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go

name: Build Mac OS

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:

build:
runs-on: macos-latest-xlarge
steps:
- uses: actions/checkout@v3

- name: Set up Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'

- name: Install Dependencies
run: brew install --force mpv && brew install dylibbundler

- name: Setup path
run: export C_INCLUDE_PATH=/opt/homebrew/include:$C_INCLUDE_PATH && export LIBRARY_PATH=/opt/homebrew/lib:$LIBRARY_PATH

- name: Build
run: go build

- name: Install Fyne tool
run: go install fyne.io/fyne/v2/cmd/fyne@latest

- name: Package app bundles
run: make package_macos && make zip_macos && mv Supersonic.zip Supersonic_mac_arm64.zip

- name: Upload app bundle
uses: actions/upload-artifact@v3
with:
name: Supersonic_mac_arm64.zip
path: Supersonic_mac_arm64.zip

0 comments on commit 4055b3a

Please sign in to comment.