-
-
Notifications
You must be signed in to change notification settings - Fork 60
61 lines (49 loc) · 1.58 KB
/
build.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
schedule:
- cron: '0 5 * * *' # run at 5 AM UTC, continous integration against master branch
jobs:
build:
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# According to https://github.com/goto-bus-stop/setup-zig#setup-zig:
# This GitHub Action is unmaintained. Please use mlugg/setup-zig instead.
# - name: Setup Zig
# uses: goto-bus-stop/setup-zig@v1
# with:
# version: master
- name: Setup Zig
uses: mlugg/setup-zig@v1
with:
version: master
- name: Compile and test synchronous
run: |
zig build test install sync-examples
# - name: Compile and test asynchronous
# # if: ${{ matrix.platform != 'windows-latest' }}
# run: |
# zig build async-examples
- name: Compile and test udp
# if: ${{ matrix.platform != 'windows-latest' }}
run: |
zig build udp-examples
- name: Compile and test discovery
# if: ${{ matrix.platform != 'windows-latest' }}
run: |
zig build discovery-examples
- name: Compile and test udp broadcast
run: |
zig build udp-broadcast
- name: Compile and test ntp client
run: |
zig build ntp-client