Skip to content

Commit

Permalink
ci: update to Zig 0.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mlugg authored and silversquirl committed Jul 19, 2024
1 parent 9d6fb51 commit d990c00
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 34 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/actions-build.sh

This file was deleted.

35 changes: 12 additions & 23 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,28 @@
name: Build native binaries

on:
push:
branches: [main]
paths:
- 'src/**'
- '**.zig'
- '.github/**'
on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

steps:
- uses: actions/cache@v2
with:
key: ${{ runner.os }}-build
path: |
zig-cache
~/.cache/deps-zig
- uses: actions/checkout@v2
- uses: goto-bus-stop/setup-zig@v1
with: {version: "0.11.0"}
- name: Checkout
uses: actions/checkout@v3
- uses: mlugg/setup-zig@v1
with: { version: "0.13.0" }

# TODO: figure out a way to cache this
- name: Install ShaderC
run: ./.github/workflows/install-shaderc.sh
run: |
sudo apt-get update
sudo apt-get install -y glslc
- name: Build for x86_64 Linux glibc
run: ./.github/workflows/actions-build.sh x86_64-linux-gnu
run: zig build -Doptimize=ReleaseSafe -Dsuffix -Dstrip -Dtimestamp -Dtarget=x86_64-linux-gnu
- name: Build for x86_64 Linux musl
run: ./.github/workflows/actions-build.sh x86_64-linux-musl
run: zig build -Doptimize=ReleaseSafe -Dsuffix -Dstrip -Dtimestamp -Dtarget=x86_64-linux-musl
- name: Build for x86_64 Windows
run: ./.github/workflows/actions-build.sh x86_64-windows
run: zig build -Doptimize=ReleaseSafe -Dsuffix -Dstrip -Dtimestamp -Dtarget=x86_64-windows

- uses: actions/upload-artifact@v2
with:
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/install-shaderc.sh

This file was deleted.

0 comments on commit d990c00

Please sign in to comment.