-
-
Notifications
You must be signed in to change notification settings - Fork 0
86 lines (82 loc) · 2.39 KB
/
main.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: Cross-compile with fyne-cross
on:
push:
branches:
- main
paths-ignore:
- '**.md'
pull_request:
branches:
- main
paths-ignore:
- '**.md'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
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
- name: Cross-compile for Linux
run: fyne-cross linux
- name: Prepare DEB package
run: |
mkdir -p .debpkg/DEBIAN
echo "Package: SoundscapeSync" > .debpkg/DEBIAN/control
echo "Version: 1.0" >> .debpkg/DEBIAN/control
echo "Architecture: amd64" >> .debpkg/DEBIAN/control
echo "Maintainer: Dominik Polakovics <[email protected]>" >> .debpkg/DEBIAN/control
mkdir -p .debpkg/usr/bin
cat .debpkg/DEBIAN/control
cp fyne-cross/bin/linux-amd64/soundscape-sync .debpkg/usr/bin
- name: Create DEB package
uses: jiro4989/build-deb-action@v3
with:
package: SoundscapeSync
package_root: .debpkg
maintainer: "Dominik Polakovics <[email protected]>"
version: 1.0
arch: 'amd64'
desc: 'This is my sample package.'
depends: 'ffmpeg'
- name: get file name
run: |
mv *.deb soundscapesync-1.0.deb
- name: Upload Windows artifact
uses: actions/upload-artifact@v3
with:
name: windows-build
path: fyne-cross/bin/windows-amd64
- name: Upload Linux artifact
uses: actions/upload-artifact@v3
with:
name: linux-build
path: fyne-cross/bin/linux-amd64
- name: Upload Debian artifact
uses: actions/upload-artifact@v3
with:
name: debian-build
path: soundscapesync-1.0.deb
build-mac:
runs-on: macos-13
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
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: fyne package -os darwin -icon Icon.png
- name: Upload macOS artifact
uses: actions/upload-artifact@v3
with:
name: macos-build
path: SoundscapeSync.app