updating to use matrix

This commit is contained in:
peterino2 2025-10-12 02:10:11 -07:00
parent b3ff5e5056
commit 5ff0e56321
1 changed files with 9 additions and 2 deletions

View File

@ -8,7 +8,14 @@ on:
jobs: jobs:
build: build:
runs-on: self-hosted runs-on: ${{ matrix.target.os }}
matrix:
target:
- zig: x86_64-linux-gnu
os: self-hosted-linux
target:
- zig: x86_64-windows
os: self-hosted-windows
steps: steps:
- name: Checkout repository - name: Checkout repository
@ -18,7 +25,7 @@ jobs:
- name: Build projects - name: Build projects
working-directory: ./projects working-directory: ./projects
run: zig build install run: zig build install -Dtarget=${{ matrix.target }}
- name: Upload build artifacts - name: Upload build artifacts
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4