Skip to content

Update go-windows.yml #21

Update go-windows.yml

Update go-windows.yml #21

Workflow file for this run

name: Build Fyne App - Mac
on:
push:
branches:
- master
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.x
- name: Build Fyne App - Mac
run: go build cmd/fyne-app/main.go
- name: Package Fyne App - Mac
run: |
cd cmd/fyne-app
go install fyne.io/fyne/v2/cmd/fyne@latest
fyne package -os darwin -icon ../../assets/Icon.png -name PartsPal
- name: Save build artifact
run: |
mkdir -p build
mv main build/
mv cmd/fyne-app/PartsPal.app build/
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git checkout -b fyne-build-mac
git add -f build/
git commit -m "Add Fyne app build for Mac"
git push --force origin fyne-build-mac