-
Notifications
You must be signed in to change notification settings - Fork 6
57 lines (44 loc) · 1.56 KB
/
build.yaml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Build
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: '1.20'
- name: Install fyne-cross
run: go install github.com/fyne-io/fyne-cross@latest
- name: Build for Windows
run: fyne-cross windows -arch=amd64
- name: Build for Linux
run: fyne-cross linux -arch=amd64,arm64
- name: Current date
id: date
run: echo "date=$(date +%F)" >> $GITHUB_ENV
- name: Git commit short SHA
id: sha_short
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
- name: Attach Windows Artifact to Release
uses: svenstaro/upload-release-action@v2
with:
tag: 1.0-${{ env.date }}-git-${{ env.sha_short }}
file: fyne-cross/bin/windows-amd64/savings-estimator.exe
asset_name: savings-estimator-windows-amd64.exe
- name: Attach Linux Artifact to Release
uses: svenstaro/upload-release-action@v2
with:
tag: 1.0-${{ env.date }}-git-${{ env.sha_short }}
file: fyne-cross/bin/linux-amd64/savings-estimator
asset_name: savings-estimator-linux-amd64
- name: Attach Linux ARM64 Artifact to Release
uses: svenstaro/upload-release-action@v2
with:
tag: 1.0-${{ env.date }}-git-${{ env.sha_short }}
file: fyne-cross/bin/linux-arm64/savings-estimator
asset_name: savings-estimator-linux-arm64