-
Notifications
You must be signed in to change notification settings - Fork 15
43 lines (33 loc) · 1.18 KB
/
build-mac.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Build for MacOS
on: [push, pull_request]
jobs:
build:
runs-on: macos-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: WillAbides/[email protected]
id: setup-go-faster
with:
go-version: "*"
- name: Update AppVersion and BuildDate
run: chmod +x ./updateAppVersionAndBuildDate.sh && ./updateAppVersionAndBuildDate.sh
- name: go get fyne
run: go get fyne.io/fyne/v2/cmd/fyne
- name: go install fyne
run: go install fyne.io/fyne/v2/cmd/fyne
- name: Package (macOS)
run: fyne package -release && mkdir pkg && mv anarchy-droid.app pkg/Anarchy-Droid.app
- name: Fix executable bit on the executable
run: chmod +x pkg/Anarchy-Droid.app/Contents/MacOS/anarchy-droid
- name: Extract binary
run: mkdir -p build && cp pkg/Anarchy-Droid.app/Contents/MacOS/anarchy-droid build/Anarchy-Droid_darwin_amd64
- uses: actions/upload-artifact@v2
with:
name: Anarchy-Droid (MacOS)
path: pkg
- uses: actions/upload-artifact@v2
with:
name: Anarchy-Droid_darwin_amd64
path: build/Anarchy-Droid_darwin_amd64