updating to use matrix
This commit is contained in:
parent
b3ff5e5056
commit
5ff0e56321
|
|
@ -8,7 +8,14 @@ on:
|
|||
|
||||
jobs:
|
||||
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:
|
||||
- name: Checkout repository
|
||||
|
|
@ -18,7 +25,7 @@ jobs:
|
|||
|
||||
- name: Build projects
|
||||
working-directory: ./projects
|
||||
run: zig build install
|
||||
run: zig build install -Dtarget=${{ matrix.target }}
|
||||
|
||||
- name: Upload build artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
|
|
|
|||
Loading…
Reference in New Issue