Skip to content

Commit c6aa077

Browse files
committed
CI
1 parent fb075f0 commit c6aa077

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.github/workflows/main.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: ci
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
push:
7+
branches:
8+
- main
9+
concurrency:
10+
# Cancels pending runs when a PR gets updated.
11+
group: ${{ github.head_ref || github.run_id }}-${{ github.actor }}
12+
cancel-in-progress: true
13+
jobs:
14+
lint-and-build-and-test:
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
os: [ubuntu-latest, windows-latest, macos-latest]
19+
runs-on: ${{matrix.os}}
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v3
23+
- name: Read .zig-version
24+
id: zigversion
25+
uses: juliangruber/read-file-action@v1
26+
with:
27+
path: ./.zigversion
28+
- name: Install Zig
29+
uses: mlugg/setup-zig@v1
30+
with:
31+
version: ${{ steps.zigversion.outputs.content }}
32+
- name: Check format
33+
continue-on-error: true
34+
run: zig fmt --check .
35+
- name: Build and run tests
36+
run: zig build test

.zigversion

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.14.0-dev.1911+3bf89f55c

0 commit comments

Comments
 (0)