Backlog/.github/workflows/build.yml
Workflow config file is invalid. Please check your config file: yaml: line 24: found character that cannot start any token

41 lines
1.1 KiB
YAML

name: Build Projects
on:
push:
branches: [ main, integration, dev/**]
pull_request:
branches: [ main, integration ]
jobs:
build:
runs-on: ${{ matrix.target.os }}
strategy:
matrix:
target:
- zig: x86_64-linux-gnu
os: self-hosted-linux
zipCommand: tar -cvfz
zipName: package.tar.xz
python: $PYTHON_NAME
- zig: x86_64-windows
os: self-hosted-windows
zipCommand: zip
zipName: package.zip
python: %PYTHON_NAME%
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 }}