-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (42 loc) · 1.23 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
46
name: Build
on:
pull_request:
push:
branches: [main, actions]
tags: ['v*']
jobs:
build:
strategy:
matrix:
os: [windows-2022, macos-11, ubuntu-22.04]
addrsize: ["64"]
runs-on: ${{ matrix.os }}
steps:
- name: Update apt
if: runner.os == 'Linux'
run: sudo apt update
- name: Setup Linux Build Dependencies
if: runner.os == 'Linux'
run: >
sudo apt install -y mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev
libxext-dev libibus-1.0-dev
fcitx-libs-dev libudev-dev libunwind-dev
libwayland-dev libxkbcommon-dev libpulse-dev ninja-build
- name: Setup macOS Build Dependencies
if: ${{ runner.os == 'macOS' }}
run: brew install ninja
- name: Setup Windows Build Dependencies
if: ${{ runner.os == 'Windows' }}
run: choco install ninja
- name: Build with autobuild
uses: secondlife/action-autobuild@v3
with:
addrsize: ${{ matrix.addrsize }}
release:
needs: build
runs-on: [ubuntu-latest]
if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: secondlife/action-autobuild-release@v3
with:
public: true