-
Notifications
You must be signed in to change notification settings - Fork 1
61 lines (52 loc) · 1.41 KB
/
build.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
name: Build
on:
push:
branches:
- master
paths-ignore:
- '**.png'
- '**.md'
pull_request:
branches:
- master
paths-ignore:
- '**.png'
- '**.md'
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
go: [1.17, 1.18]
runs-on: ${{ matrix.os }}
steps:
- name: Install dependencies
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install pkg-config libwayland-dev libx11-dev libx11-xcb-dev libxkbcommon-x11-dev libgles2-mesa-dev libegl1-mesa-dev libffi-dev libxcursor-dev xorg-dev libvulkan-dev
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ matrix.os }}-go-${{ matrix.go }}-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-go-${{ matrix.go }}-
- name: Build Gio
run: |
go run tools/mage.go build:gio
- name: Build Fyne
run: |
go run tools/mage.go build:fyne
- name: Artifacts Gio
uses: actions/upload-artifact@v4
with:
name: gio-${{ matrix.os }}-${{ matrix.go }}
path: build/gio
- name: Artifacts Fyne
uses: actions/upload-artifact@v4
with:
name: fyne-${{ matrix.os }}-${{ matrix.go }}
path: build/fyne