-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (27 loc) · 949 Bytes
/
ci.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
name: CI Build
on: [push]
jobs:
build:
strategy:
fail-fast: false
matrix:
runs-on: [ubuntu-latest, macos-latest, windows-latest]
optimize-mode: [ReleaseSafe, ReleaseFast, ReleaseSmall, Debug]
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v4
- uses: korandoru/setup-zig@v1
with:
zig-version: master
- uses: dlang-community/setup-dlang@v1
with:
compiler: ldc-master
- name: Build Summary
run: zig build --summary all --verbose -Doptimize=${{ matrix.optimize-mode }}
- name: Run
run: |
zig build test
zig build run-example1 -Doptimize=${{ matrix.optimize-mode }}
zig build run-example2 -Doptimize=${{ matrix.optimize-mode }}
zig build run-example3 -Doptimize=${{ matrix.optimize-mode }}
zig build run-example4 -Doptimize=${{ matrix.optimize-mode }}