1
0
mirror of https://github.com/google/cpu_features.git synced 2025-11-01 05:30:41 +01:00

ci: Zig build on MacOs, Win

Signed-off-by: inge4pres <fgualazzi@gmail.com>
This commit is contained in:
inge4pres
2025-10-14 21:06:01 +02:00
committed by Mizux Seiha
parent 7f268eded4
commit eba686d452
3 changed files with 60 additions and 0 deletions

20
.github/workflows/amd64_macos_zig.yml vendored Normal file
View File

@@ -0,0 +1,20 @@
name: amd64 MacOS Zig
on: [push, pull_request]
jobs:
run:
strategy:
matrix:
target:
- x86_64-macos-none
runs-on: macos-13 # Using x86 processors
steps:
- uses: actions/checkout@v5
- uses: mlugg/setup-zig@v2
with:
version: latest
- name: Build
run: zig build -Dtarget=${{ matrix.target }}
- name: Run list_cpu_features
run: ./zig-out/bin/list_cpu_features --json

20
.github/workflows/amd64_windows_zig.yml vendored Normal file
View File

@@ -0,0 +1,20 @@
name: amd64 Windows Zig
on: [push, pull_request]
jobs:
run:
strategy:
matrix:
target:
- x86_64-windows-gnu
runs-on: windows-latest
steps:
- uses: actions/checkout@v5
- uses: mlugg/setup-zig@v2
with:
version: latest
- name: Build
run: zig build -Dtarget=${{ matrix.target }}
- name: Run list_cpu_features
run: .\zig-out\bin\list_cpu_features.exe --json

20
.github/workflows/arm64_macos_zig.yml vendored Normal file
View File

@@ -0,0 +1,20 @@
name: Arm64 MacOS Zig
on: [push, pull_request]
jobs:
run:
strategy:
matrix:
target:
- aarch64-macos-none
runs-on: macos-latest # Using M1 processors
steps:
- uses: actions/checkout@v5
- uses: mlugg/setup-zig@v2
with:
version: latest
- name: Build
run: zig build -Dtarget=${{ matrix.target }}
- name: Run list_cpu_features
run: ./zig-out/bin/list_cpu_features --json