31 lines
589 B
YAML
31 lines
589 B
YAML
name: Build Projects
|
|
|
|
on:
|
|
push:
|
|
branches: [ main, integration, dev/** ]
|
|
pull_request:
|
|
branches: [ main, integration ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: self-hosted
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Build projects
|
|
working-directory: ./projects
|
|
run: zig build install
|
|
|
|
- name: Upload build artifacts
|
|
uses: actions/upload-artifact@v4
|
|
if: success()
|
|
with:
|
|
name: build-artifacts
|
|
path: |
|
|
projects/zig-out/
|
|
retention-days: 7
|