Skip to content

Commit d990c00

Browse files
mluggsilversquirl
authored andcommitted
ci: update to Zig 0.13.0
1 parent 9d6fb51 commit d990c00

File tree

3 files changed

+12
-34
lines changed

3 files changed

+12
-34
lines changed

.github/workflows/actions-build.sh

Lines changed: 0 additions & 5 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,28 @@
11
name: Build native binaries
22

3-
on:
4-
push:
5-
branches: [main]
6-
paths:
7-
- 'src/**'
8-
- '**.zig'
9-
- '.github/**'
3+
on: [push, pull_request]
104

115
jobs:
126
build:
13-
runs-on: ubuntu-latest
7+
runs-on: ubuntu-24.04
148

159
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" }
2614

27-
# TODO: figure out a way to cache this
2815
- name: Install ShaderC
29-
run: ./.github/workflows/install-shaderc.sh
16+
run: |
17+
sudo apt-get update
18+
sudo apt-get install -y glslc
3019
3120
- 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
3322
- 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
3524
- 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
3726

3827
- uses: actions/upload-artifact@v2
3928
with:

.github/workflows/install-shaderc.sh

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)