-
Notifications
You must be signed in to change notification settings - Fork 4
73 lines (73 loc) · 2.02 KB
/
ci.yml
File metadata and controls
73 lines (73 loc) · 2.02 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
name: ci
on:
push:
paths-ignore:
- "README.md"
- "LICENSE"
pull_request:
paths-ignore:
- "README.md"
- "LICENSE"
concurrency:
group: ${{ github.head_ref || github.run_id }}-${{ github.actor }}
cancel-in-progress: true
jobs:
build-ziggy:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
opt: [Debug, ReleaseSafe]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Zig
uses: mlugg/setup-zig@v2
- name: Build
working-directory: ./ziggy
run: zig build -Doptimize=${{ matrix.opt }}
build-ubuntu:
strategy:
fail-fast: false
matrix:
skip-build: [client, server]
tracy-flag: [true, false]
opt: [Debug, ReleaseSafe]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install packages
run: |
sudo apt update
sudo apt install libgtk-3-dev libxcb-xkb-dev libxcb-render-util0-dev libxkbcommon-x11-dev
- name: Install Zig
uses: mlugg/setup-zig@v2
- name: Install Vulkan SDK
uses: humbletim/install-vulkan-sdk@v1.2
with:
version: 1.4.309.0
cache: true
- name: Build
run: zig build -D${{ matrix.skip-build }}=false -Dtracy=${{ matrix.tracy-flag }} -Doptimize=${{ matrix.opt }}
build-windows:
strategy:
fail-fast: false
matrix:
skip-build: [client, server]
tracy-flag: [true, false]
opt: [Debug, ReleaseSafe]
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Zig
uses: mlugg/setup-zig@v2
- name: Install Vulkan SDK
uses: humbletim/install-vulkan-sdk@v1.2
with:
version: 1.4.309.0
cache: true
- name: Build
run: zig build -D${{ matrix.skip-build }}=false -Dtracy=${{ matrix.tracy-flag }} -Doptimize=${{ matrix.opt }}