Backlog/.github/workflows/build.yml

37 lines
929 B
YAML

name: Build Projects
on:
push:
branches: [ main, integration]
pull_request:
branches: [ main, integration ]
jobs:
build:
runs-on: ${{ matrix.target.os }}
strategy:
matrix:
target:
- zig: x86_64-linux-gnu
os: self-hosted-linux
python: python3
- zig: x86_64-windows
os: self-hosted-windows
python: python
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Get short commit SHA
id: commit
shell: bash
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Build Debug
working-directory: ./projects
run: ${{ matrix.target.python }} ../tools/scripts/automation.py ${{ matrix.target.zig }} --deploy=${{ steps.commit.outputs.sha_short }} --branch=${{ github.head_ref || github.ref_name }}