Skip to content

Commit

Permalink
check compatibility with old versions in the build_runner ci
Browse files Browse the repository at this point in the history
  • Loading branch information
leecannon committed Aug 17, 2023
1 parent 363f741 commit 0c3598f
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/build_runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
if: github.repository_owner == 'zigtools'
strategy:
matrix:
zig_version: [master]
zig_version: [master, 0.11.0, 0.10.1]

runs-on: ubuntu-latest

Expand All @@ -34,7 +34,25 @@ jobs:
with:
version: ${{ matrix.zig_version }}

- name: Check build_runner builds on master
- name: Create temp zig project
run: |
pwd
zig build --build-runner src/build_runner/master.zig
mkdir $RUNNER_TEMP/TEMP_ZIG_PROJECT
cd $RUNNER_TEMP/TEMP_ZIG_PROJECT
zig init-exe
- uses: jungwinter/split@v2
id: split
with:
msg: ${{ matrix.zig_version }}

- name: Zig version without minor patch
id: short_zig_version
uses: ashley-taylor/[email protected]
with:
value: ${{ matrix.zig_version }}
regex: "\\.[0-9]+$"
replacement: ""

- name: Check build_runner builds
run: |
zig build --build-runner $GITHUB_WORKSPACE/src/build_runner/${{ steps.short_zig_version.outputs.value }}.zig

0 comments on commit 0c3598f

Please sign in to comment.