Skip to content

Commit

Permalink
Fix build for windows and add macOS builds
Browse files Browse the repository at this point in the history
  • Loading branch information
cristim committed May 19, 2024
1 parent 0363435 commit fb2b87a
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,27 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: macos-latest

steps:
- uses: actions/checkout@v3

- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: '1.20'
go-version: "1.22"

- name: Install fyne-cross
run: go install github.com/fyne-io/fyne-cross@latest

- name: Build for Windows
run: fyne-cross windows -arch=amd64
run: fyne-cross windows -arch=amd64 -app-id com.leanercloud.savings-estimator

- name: Build for Linux
run: fyne-cross linux -arch=amd64,arm64

- name: Build for macOS
run: fyne-cross darwin -arch=amd64,arm64 -app-id com.leanercloud.savings-estimator

- name: Current date
id: date
Expand Down Expand Up @@ -54,4 +56,18 @@ jobs:
with:
tag: 1.0-${{ env.date }}-git-${{ env.sha_short }}
file: fyne-cross/bin/linux-arm64/savings-estimator
asset_name: savings-estimator-linux-arm64
asset_name: savings-estimator-linux-arm64

- name: Attach macOS AMD64 Artifact to Release
uses: svenstaro/upload-release-action@v2
with:
tag: 1.0-${{ env.date }}-git-${{ env.sha_short }}
file: fyne-cross/bin/darwin-amd64/savings-estimator.app
asset_name: savings-estimator-macos-amd64.app

- name: Attach macOS ARM64 Artifact to Release
uses: svenstaro/upload-release-action@v2
with:
tag: 1.0-${{ env.date }}-git-${{ env.sha_short }}
file: fyne-cross/bin/darwin-arm64/savings-estimator.app
asset_name: savings-estimator-macos-arm64.app

0 comments on commit fb2b87a

Please sign in to comment.