-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (42 loc) · 1.59 KB
/
release.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
# Release build workflow for Go Lang Fyne app Ollamark
name: Release
on:
push:
tags:
- 'v*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.20' # Ensure this is the version you want to use
- name: Download macOS SDK
run: |
curl -L -o MacOSX13.3.sdk.tar.xz "https://github.com/joseluisq/macosx-sdks/releases/download/13.3/MacOSX13.3.sdk.tar.xz"
sudo mkdir -p /opt/MacOSX13.3.sdk
sudo tar -xJf MacOSX13.3.sdk.tar.xz -C /opt/MacOSX13.3.sdk
- name: Install fyne-cross
run: go install github.com/fyne-io/fyne-cross@latest
- name: Install X11 development libraries
run: |
sudo apt-get update
sudo apt-get install -y libx11-dev libxcursor-dev libxrandr-dev libxinerama-dev libgl1-mesa-dev libxi-dev libxext-dev libglu1-mesa-dev xorg-dev
- name: Build
run: |
fyne-cross windows -arch=amd64 -icon icon.png
fyne-cross linux -arch=amd64 -icon icon.png
fyne-cross darwin -arch=arm64 -icon icon.png --macosx-sdk-path /opt/MacOSX13.3.sdk -app-id com.contextlabs.ollamark
env:
FYNE_CROSS_TARGETS: windows/amd64 linux/amd64 darwin/arm64
FYNE_CROSS_DARWIN_SDK: /opt/MacOSX13.3.sdk
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
fyne-cross/bin/windows-amd64/Ollamark.exe
fyne-cross/bin/linux-amd64/Ollamark
fyne-cross/bin/darwin-arm64/Ollamark.app