Skip to content

Commit

Permalink
CI/CD enchanced
Browse files Browse the repository at this point in the history
  • Loading branch information
kassane committed Jul 5, 2023
1 parent 2d31ecb commit 6d39598
Showing 1 changed file with 21 additions and 37 deletions.
58 changes: 21 additions & 37 deletions .github/workflows/zig.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: zig-build
name: Zig Build

on: [push, pull_request]

Expand All @@ -7,8 +7,24 @@ jobs:
strategy:
fail-fast: false
matrix:
runs-on: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.runs-on }}
targets:
- x86_64-linux-gnu
- x86_64-linux-musl
- x86-linux-gnu
- x86-linux-musl
- aarch64-linux-gnu
- aarch64-linux-musl
- riscv64-linux-musl
- mipsel-linux-musl
- mips-linux-musl
- powerpc64-linux-musl
- x86_64-macos
- aarch64-macos
- x86_64-windows
- x86-windows
- aarch64-windows

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -17,38 +33,6 @@ jobs:
- uses: goto-bus-stop/setup-zig@v2
with:
version: master

- name: Build Summary
run: zig build -DTests --summary all -freference-trace

- name: Build Summary (x86-windows-gnu)
if: startsWith(matrix.runs-on, 'windows')
run: zig build -DTests --summary all -freference-trace -Dtarget=x86-windows

- name: Build Summary (arm64-windows-gnu)
if: startsWith(matrix.runs-on, 'windows')
run: zig build -DTests --summary all -freference-trace -Dtarget=aarch64-windows

- name: Build Summary (arm64-macos)
if: startsWith(matrix.runs-on, 'macos')
run: zig build -DTests --summary all -freference-trace -Dtarget=aarch64-macos

- name: Build Summary (arm64-linux-gnu)
if: startsWith(matrix.runs-on, 'ubuntu')
run: zig build -DTests --summary all -freference-trace -Dtarget=aarch64-linux-gnu

- name: Build Summary (arm64-linux-musl)
if: startsWith(matrix.runs-on, 'ubuntu')
run: zig build -DTests --summary all -freference-trace -Dtarget=aarch64-linux

- name: Build Summary (riscv64-linux-musl)
if: startsWith(matrix.runs-on, 'ubuntu')
run: zig build -DTests --summary all -freference-trace -Dtarget=riscv64-linux

- name: Build Summary (mipsel-linux-musl)
if: startsWith(matrix.runs-on, 'ubuntu')
run: zig build -DTests --summary all -freference-trace -Dtarget=mipsel-linux

- name: Build Summary (powerpc64-linux-musl)
if: startsWith(matrix.runs-on, 'ubuntu')
run: zig build -DTests --summary all -freference-trace -Dtarget=powerpc64-linux
- name: Build Summary ${{ matrix.targets }}
run: zig build -DTests --summary all -freference-trace -Dtarget=${{ matrix.targets }}

0 comments on commit 6d39598

Please sign in to comment.