From eba686d452db62c4098f092abc125c90cd25bb5c Mon Sep 17 00:00:00 2001 From: inge4pres Date: Tue, 14 Oct 2025 21:06:01 +0200 Subject: [PATCH] ci: Zig build on MacOs, Win Signed-off-by: inge4pres --- .github/workflows/amd64_macos_zig.yml | 20 ++++++++++++++++++++ .github/workflows/amd64_windows_zig.yml | 20 ++++++++++++++++++++ .github/workflows/arm64_macos_zig.yml | 20 ++++++++++++++++++++ 3 files changed, 60 insertions(+) create mode 100644 .github/workflows/amd64_macos_zig.yml create mode 100644 .github/workflows/amd64_windows_zig.yml create mode 100644 .github/workflows/arm64_macos_zig.yml diff --git a/.github/workflows/amd64_macos_zig.yml b/.github/workflows/amd64_macos_zig.yml new file mode 100644 index 0000000..d954be7 --- /dev/null +++ b/.github/workflows/amd64_macos_zig.yml @@ -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 diff --git a/.github/workflows/amd64_windows_zig.yml b/.github/workflows/amd64_windows_zig.yml new file mode 100644 index 0000000..e967aac --- /dev/null +++ b/.github/workflows/amd64_windows_zig.yml @@ -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 diff --git a/.github/workflows/arm64_macos_zig.yml b/.github/workflows/arm64_macos_zig.yml new file mode 100644 index 0000000..20b9c72 --- /dev/null +++ b/.github/workflows/arm64_macos_zig.yml @@ -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