Skip to content

Commit

Permalink
call zig init instead of zig init-exe build_runner.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Techatrix committed Nov 23, 2023
1 parent 71d2c33 commit d3353bc
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/build_runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@ jobs:
if: github.repository_owner == 'zigtools'
strategy:
matrix:
zig_version: [master, 0.11.0]

include:
- zig-version: master
zig-init: init
- zig-version: 0.11.0
zig-init: init-exe
runs-on: ubuntu-latest

steps:
Expand All @@ -31,15 +34,15 @@ jobs:
- name: Grab zig
uses: goto-bus-stop/setup-zig@v2
with:
version: ${{ matrix.zig_version }}
version: ${{ matrix.zig-version }}

- name: Create temp zig project
run: |
mkdir $RUNNER_TEMP/TEMP_ZIG_PROJECT
cd $RUNNER_TEMP/TEMP_ZIG_PROJECT
zig init-exe
zig ${{ matrix.zig-init }}
- name: Check build_runner builds
run: |
cd $RUNNER_TEMP/TEMP_ZIG_PROJECT
zig build --build-runner $GITHUB_WORKSPACE/src/build_runner/${{ matrix.zig_version }}*.zig
zig build --build-runner $GITHUB_WORKSPACE/src/build_runner/${{ matrix.zig-version }}*.zig

0 comments on commit d3353bc

Please sign in to comment.