Skip to content

GH Actions: separate build and upload step #50

GH Actions: separate build and upload step

GH Actions: separate build and upload step #50

Workflow file for this run

on:
push:
branches: [master]
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Set up Zig
uses: goto-bus-stop/[email protected]
with:
version: 0.11.0
- name: Check out repository
uses: actions/checkout@v4
- name: Zig build test Debug
run: |
zig build test
- name: Zig build test Release
run: |
zig build test -Drelease
upload:
steps:

Check failure on line 35 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 35, Col: 5): Required property is missing: runs-on
- name: Set up Zig
uses: goto-bus-stop/[email protected]
with:
version: 0.11.0
- name: Check out repository
uses: actions/checkout@v4
- name: Zig build cross
run: |
zig env
zig build cross -Drelease
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: bin
path: zig-out/bin/habu-*