forked from zigtools/zls
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (36 loc) · 1016 Bytes
/
build_runner.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: BuildRunner
on:
push:
paths:
- ".github/workflows/build_runner.yml"
- "src/build_runner/**"
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
check_build_runner:
if: github.repository_owner == 'zigtools'
strategy:
matrix:
include:
- zig-version: master
zig-init: init
- zig-version: 0.11.0
zig-init: init-exe
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Grab zig
uses: goto-bus-stop/setup-zig@v2
with:
version: ${{ matrix.zig-version }}
- name: Create temp zig project
run: |
mkdir $RUNNER_TEMP/TEMP_ZIG_PROJECT
cd $RUNNER_TEMP/TEMP_ZIG_PROJECT
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