-
Notifications
You must be signed in to change notification settings - Fork 4
30 lines (24 loc) · 896 Bytes
/
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
name: Build native binaries
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: mlugg/setup-zig@v1
with: { version: "0.13.0" }
- name: Install ShaderC
run: |
sudo apt-get update
sudo apt-get install -y glslc
- name: Build for x86_64 Linux glibc
run: zig build -Doptimize=ReleaseSafe -Dsuffix -Dstrip -Dtimestamp -Dtarget=x86_64-linux-gnu
- name: Build for x86_64 Linux musl
run: zig build -Doptimize=ReleaseSafe -Dsuffix -Dstrip -Dtimestamp -Dtarget=x86_64-linux-musl
- name: Build for x86_64 Windows
run: zig build -Doptimize=ReleaseSafe -Dsuffix -Dstrip -Dtimestamp -Dtarget=x86_64-windows
- uses: actions/upload-artifact@v2
with:
name: binaries
path: zig-out/bin/slimy-*-*