File tree Expand file tree Collapse file tree 3 files changed +12
-34
lines changed Expand file tree Collapse file tree 3 files changed +12
-34
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
name : Build native binaries
2
2
3
- on :
4
- push :
5
- branches : [main]
6
- paths :
7
- - ' src/**'
8
- - ' **.zig'
9
- - ' .github/**'
3
+ on : [push, pull_request]
10
4
11
5
jobs :
12
6
build :
13
- runs-on : ubuntu-latest
7
+ runs-on : ubuntu-24.04
14
8
15
9
steps :
16
- - uses : actions/cache@v2
17
- with :
18
- key : ${{ runner.os }}-build
19
- path : |
20
- zig-cache
21
- ~/.cache/deps-zig
22
-
23
- - uses : actions/checkout@v2
24
- - uses : goto-bus-stop/setup-zig@v1
25
- with : {version: "0.11.0"}
10
+ - name : Checkout
11
+ uses : actions/checkout@v3
12
+ - uses : mlugg/setup-zig@v1
13
+ with : { version: "0.13.0" }
26
14
27
- # TODO: figure out a way to cache this
28
15
- name : Install ShaderC
29
- run : ./.github/workflows/install-shaderc.sh
16
+ run : |
17
+ sudo apt-get update
18
+ sudo apt-get install -y glslc
30
19
31
20
- name : Build for x86_64 Linux glibc
32
- run : ./.github/workflows/actions- build.sh x86_64-linux-gnu
21
+ run : zig build -Doptimize=ReleaseSafe -Dsuffix -Dstrip -Dtimestamp -Dtarget= x86_64-linux-gnu
33
22
- name : Build for x86_64 Linux musl
34
- run : ./.github/workflows/actions- build.sh x86_64-linux-musl
23
+ run : zig build -Doptimize=ReleaseSafe -Dsuffix -Dstrip -Dtimestamp -Dtarget= x86_64-linux-musl
35
24
- name : Build for x86_64 Windows
36
- run : ./.github/workflows/actions- build.sh x86_64-windows
25
+ run : zig build -Doptimize=ReleaseSafe -Dsuffix -Dstrip -Dtimestamp -Dtarget= x86_64-windows
37
26
38
27
- uses : actions/upload-artifact@v2
39
28
with :
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments