Update Zig bindings to Zig 0.12.0 (#1951)
* update zig bindings to Zig 0.12.0 * support zig package manager * Fix zig macos ci build * Make the macos build use 1 process instead of hitting the macos process limit immediately, utilize the build.zig `-Dparallel false` option for macos ci * Split the macos ci into a new build stage (out of the ubuntu, macos build maxtrix), to allow for multiple architecture builds in the future after the zig bindings improve
This commit is contained in:
34
.github/workflows/zigbuild.yml
vendored
34
.github/workflows/zigbuild.yml
vendored
@@ -15,11 +15,11 @@ on:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
build-ubuntu:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
runs-on: [ubuntu-latest, macos-latest]
|
||||
runs-on: [ubuntu-latest]
|
||||
runs-on: ${{ matrix.runs-on }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
@@ -28,7 +28,7 @@ jobs:
|
||||
fetch-depth: 0
|
||||
- uses: goto-bus-stop/setup-zig@v2
|
||||
with:
|
||||
version: 0.11.0
|
||||
version: 0.12.0
|
||||
- uses: lukka/get-cmake@latest
|
||||
with:
|
||||
cmakeVersion: latest
|
||||
@@ -39,7 +39,33 @@ jobs:
|
||||
|
||||
- name: Build Summary
|
||||
run: zig build --summary all -freference-trace
|
||||
build-macos:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
runs-on: [macos-latest]
|
||||
runs-on: ${{ matrix.runs-on }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 0
|
||||
- uses: goto-bus-stop/setup-zig@v2
|
||||
with:
|
||||
version: 0.12.0
|
||||
- uses: lukka/get-cmake@latest
|
||||
with:
|
||||
cmakeVersion: latest
|
||||
ninjaVersion: latest
|
||||
|
||||
# MacOS has a hard process limit that we will hit if we do a
|
||||
# parallel build, so disable parallel cmake build (manual
|
||||
# option set in `build.zig`)
|
||||
- name: CMake Build
|
||||
run: zig build -Dparallel=false cmake
|
||||
|
||||
- name: Build Summary
|
||||
run: zig build --summary all -freference-trace
|
||||
# ===================================================================
|
||||
# zig-mingw:
|
||||
# runs-on: windows-latest
|
||||
@@ -78,4 +104,4 @@ jobs:
|
||||
# else
|
||||
# zig build --summary all -freference-trace -Dtarget=${{ matrix.arch }}-windows
|
||||
# fi
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user