38 lines
800 B
YAML
38 lines
800 B
YAML
name: Build Projects
|
|
|
|
on:
|
|
push:
|
|
branches: [ main, integration, dev/** ]
|
|
pull_request:
|
|
branches: [ main, integration ]
|
|
|
|
jobs:
|
|
build:
|
|
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
|
|
uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Build projects
|
|
working-directory: ./projects
|
|
run: zig build install -Dtarget=${{ matrix.target }}
|
|
|
|
- name: Upload build artifacts
|
|
uses: actions/upload-artifact@v4
|
|
if: success()
|
|
with:
|
|
name: build-artifacts
|
|
path: |
|
|
projects/zig-out/
|
|
retention-days: 7
|