-
-
Notifications
You must be signed in to change notification settings - Fork 311
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
check compatibility with old versions in the build_runner ci
- Loading branch information
Showing
1 changed file
with
22 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
@@ -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 |