-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (33 loc) · 924 Bytes
/
zig.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
name: Zig workflows
on:
pull_request:
branches: [main]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- name: checkout Kode
uses: actions/checkout@v3
- name: setup zig
uses: goto-bus-stop/setup-zig@v2
with:
version: 0.11.0
cache: false
- name: testing kode zig
if: (startsWith(matrix.runs-on, 'ubuntu')) || (startsWith(matrix.runs-on, 'macos'))
run: sh runtest.sh
- name: testing kode zig di windows
if: (startsWith(matrix.runs-on, 'windows'))
run: ./runtest.cmd
linting-kode-zig:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: goto-bus-stop/setup-zig@v2
with:
version: 0.11.0
cache: false
- run: zig fmt --check --ast-check .