forked from zigimg/zigimg
-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (32 loc) · 888 Bytes
/
main.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
name: CI
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{matrix.os}}
steps:
- name: Prepare git
run: |-
git config --global core.autocrlf false
git config --global core.eol lf
- name: Checkout zigmimg
uses: actions/checkout@v2
with:
path: zigimg
- name: Checkout test-suite fixtures
uses: actions/checkout@v3
with:
repository: zigimg/test-suite
path: test-suite
- name: Setup Zig
uses: goto-bus-stop/setup-zig@v1
with:
version: 0.13.0-dev.351+64ef45eb0
- name: AST Verify
run: zig fmt --check --ast-check src/
working-directory: zigimg
- name: Run test suite
run: zig build test
working-directory: zigimg