-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (45 loc) · 1.38 KB
/
go.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
name: Go
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
go-version: [1.16]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Install deb package (linux)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install gcc libgl1-mesa-dev libegl1-mesa-dev libgles2-mesa-dev libx11-dev xorg-dev
- name: Install cli
run: |
go get golang.org/x/lint/golint
go get fyne.io/fyne/v2/cmd/fyne
- name: Build
run: |
go build -v .
- name: Lint
run: |
go vet ./...
golint -set_exit_status ./...
- name: Packaging (windows)
if: runner.os == 'Windows'
run: fyne package -os windows -icon icon.png -release -appID com.github.mikan.arpg
- name: Packaging (macos)
if: runner.os == 'macOS'
run: fyne package -os darwin -icon icon.png -release -appID com.github.mikan.arpg
- name: Packaging (linux)
if: runner.os == 'Linux'
run: fyne package -os linux -icon icon.png -release -appID com.github.mikan.arpg