-
Notifications
You must be signed in to change notification settings - Fork 5
62 lines (49 loc) · 1.33 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
62
name: Check
on:
push:
branches: [ trunk ]
env:
ZIG_VERSION: 0.14.0-dev.2+0884a4341
VULKAN_SDK_VERSION: 1.3.283.0
jobs:
build-linux:
runs-on: ubuntu-22.04
steps:
- name: Checkout repo & submodules
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install wayland-protocols libwayland-dev libxkbcommon-dev # Wayland
sudo apt-get install libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev # X11
- name: Install Vulkan SDK
uses: humbletim/install-vulkan-sdk@v1.1.1
with:
version: ${{env.VULKAN_SDK_VERSION}}
cache: true
- name: Setup Zig
uses: goto-bus-stop/setup-zig@v2
with:
version: ${{env.ZIG_VERSION}}
- name: Type check
run: zig build check
build-windows:
runs-on: windows-2022
steps:
- name: Checkout repo & submodules
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Vulkan SDK
uses: humbletim/install-vulkan-sdk@v1.1.1
with:
version: ${{env.VULKAN_SDK_VERSION}}
cache: true
- name: Setup Zig
uses: goto-bus-stop/setup-zig@v2
with:
version: ${{env.ZIG_VERSION}}
- name: Type check
run: zig build check