From be0d46599a4a110d381f052a2c63e1818c5adc1a Mon Sep 17 00:00:00 2001 From: inge4pres Date: Tue, 14 Oct 2025 21:06:01 +0200 Subject: [PATCH 1/2] 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 00000000..d954be77 --- /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 00000000..e967aacd --- /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 00000000..20b9c721 --- /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 From f66520a3bbdfd03ce71582fc43fe3e9baebb3a2a Mon Sep 17 00:00:00 2001 From: inge4pres Date: Sat, 25 Oct 2025 14:26:51 +0200 Subject: [PATCH 2/2] update image for workflow amd64/macos_zig Signed-off-by: inge4pres --- .github/workflows/amd64_macos_zig.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/amd64_macos_zig.yml b/.github/workflows/amd64_macos_zig.yml index d954be77..2022d599 100644 --- a/.github/workflows/amd64_macos_zig.yml +++ b/.github/workflows/amd64_macos_zig.yml @@ -8,7 +8,7 @@ jobs: matrix: target: - x86_64-macos-none - runs-on: macos-13 # Using x86 processors + runs-on: macos-15-intel # Using x86 processors steps: - uses: actions/checkout@v5 - uses: mlugg/setup-zig@v2