Repository navigation
58 lines (58 loc) · 1.46 KB
/
Copy pathci.yml
File metadata and controls
58 lines (58 loc) · 1.46 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# http://webui.me
# https://github.com/webui-dev/zig-webui
# Licensed under MIT License.
# All rights reserved.
name: CI
on:
push:
paths:
- "**.zig"
- "**.zon"
- "tests/**"
- ".github/workflows/ci.yml"
pull_request:
branches: [main]
paths:
- "**.zig"
- "**.zon"
- "tests/**"
- ".github/workflows/ci.yml"
# schedule:
# - cron: "0 2 * * *"
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
version: [0.16.0, 0.17.0]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: maxim-lobanov/setup-xcode@v1
if: runner.os == 'macOS'
with:
xcode-version: latest-stable
- name: Setup Zig
uses: mlugg/setup-zig@v2
with:
version: ${{ matrix.version }}
- uses: actions/checkout@v4
- name: Build examples
run: zig build examples
- name: Build examples dynamic
if: runner.os != 'Windows'
run: zig build examples -Dis_static=false
- name: Run unit tests
run: zig build test --summary all
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Run embedded directory integration tests
run: python -B -m unittest discover -s tests -v
lint:
runs-on: ubuntu-latest
steps:
- name: Setup Zig
uses: mlugg/setup-zig@v2
- name: Verify formatting
run: zig fmt .