Skip to content

Update Workflows

Update Workflows #1

name: Build Microzig Master
on:
push:
branches: [zig-master]
pull_request:
branches: [zig-master]
<<<<<<< HEAD

Check failure on line 8 in .github/workflows/zig-master-build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/zig-master-build.yml

Invalid workflow file

You have an error in your yaml syntax on line 8
# A simple workflow that will, upon a push or PR to zig-master, build microzig
=======
>>>>>>> ea386ec (ci: implement build pipeline and patch to zig master)
jobs:
# No we don't need this still, I'm just happy about figuring out the jq query
# (I don't want to hear that it is simple, I think it's cool xD)
# get-branch:
# runs-on: ubuntu-latest
# outputs:
# ref: ${{ steps.gmrp.outputs.ref }}
# steps:
# - name: checkout
# uses: actions/checkout@v4
# - name: get-most-recent-pr
# id: gmrp
# run: |
# echo "ref=$(gh pr list -B zig-master --limit 30 --json headRefName,number -q '[.[] | select(.headRefName | startswith("master-patch"))] | max_by(.number) | .headRefName')" >> $GITHUB_OUTPUT
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build-microzig-master-post-pr:
name: Build with master
<<<<<<< HEAD
uses: ./.github/workflows/build-base.yml
=======
uses: ./.github/workflows/zig-build-base.yml
>>>>>>> ea386ec (ci: implement build pipeline and patch to zig master)
with:
zig-version: master
get-submodules: true
is-packaged: true
artifact-output-paths: boxzer-out
<<<<<<< HEAD
zig-args: -Doptimize=ReleaseSmall
=======
>>>>>>> ea386ec (ci: implement build pipeline and patch to zig master)
secrets:
downloads-url: ${{ secrets.DOWNLOADS_URL }}