-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (44 loc) · 1.31 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
# https://github.com/marketplace/actions/go-release-binaries
on:
push:
branches:
- main
tags:
- '*'
release:
types: [created]
jobs:
release-linux-amd64:
name: release linux/amd64
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux]
#goos: [linux, windows, darwin]
goarch: [amd64, arm64]
exclude:
- goarch: arm64
goos: windows
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v3
- name: install packages
run: |
go install github.com/fyne-io/fyne-cross@latest
export PATH=$PATH:~/go/bin
pwd
ls
echo "$HOME/go/bin" >> $GITHUB_PATH
fyne-cross linux -output carbon-app -arch=amd64 .
#sudo apt update
#sudo apt-get -y install bc gcc libgl1-mesa-dev libwayland-dev libx11-dev libxkbcommon-dev xorg-dev xvfb
#sudo apt-get -y install libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev gcc pkg-config libxxf86vm-dev
#- uses: wangyoucao577/[email protected]
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# goos: ${{ matrix.goos }}
# goarch: ${{ matrix.goarch }}
# binary_name: carbon-app
# retry: 10
# sha256sum: true
# pre_command: go mod tidy