Skip to content

test macos build

test macos build #77

Workflow file for this run

name: Cross-compile with fyne-cross
on:
push:
branches:
- main
paths-ignore:
- '**.md'
- '.github/workflows/release.yml'
- '.github/FUNDING.yml'
pull_request:
branches:
- main
paths-ignore:
- '**.md'
- '.github/workflows/release.yml'
- '.github/FUNDING.yml'
jobs:
# build-linux:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - name: Set up Go
# uses: actions/setup-go@v5
# with:
# go-version: 1.22
# - name: Install fyne-cross
# run: go install github.com/fyne-io/fyne-cross@latest
# - name: Cross-compile for Linux
# run: fyne-cross linux
#
# build-windows:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - name: Set up Go
# uses: actions/setup-go@v5
# with:
# go-version: 1.22
# - name: Install fyne-cross
# run: go install github.com/fyne-io/fyne-cross@latest
# - name: Cross-compile for Windows
# run: fyne-cross windows
build-mac:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22
- name: Install fyne
run: go install fyne.io/fyne/v2/cmd/fyne@latest
- name: Build Fyne application for macOS
run: |
GOOS=darwin GOARCH=arm64 go build
fyne package -os darwin -icon Icon.png
ls -lh
zip archive.zip SoundscapeSync.app
ls -lh
# - name: Upload macOS artifact
# uses: actions/upload-artifact@v4
# with:
# name: macos-build
# path: archive.zip