Skip to content

Commit 6e71bff

Browse files
committed
add workflow
1 parent 8d3e19e commit 6e71bff

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.github/workflows/zig.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: Zig
4+
5+
# Controls when the action will run. Triggers the workflow on push or pull request
6+
# events but only for the master branch
7+
on:
8+
schedule:
9+
- cron: '0 18 * * *'
10+
push:
11+
branches: [ master ]
12+
pull_request:
13+
14+
jobs:
15+
test:
16+
strategy:
17+
matrix:
18+
os: [ubuntu-latest, macos-latest, windows-latest]
19+
runs-on: ${{matrix.os}}
20+
steps:
21+
- uses: actions/checkout@v2
22+
- uses: goto-bus-stop/setup-zig@v1
23+
with:
24+
version: master
25+
- run: zig build test
26+
lint:
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v2
30+
- uses: goto-bus-stop/setup-zig@v1
31+
with:
32+
version: master
33+
- run: zig fmt --check src/*.zig

README.md

-4 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)