-
Notifications
You must be signed in to change notification settings - Fork 8
42 lines (35 loc) · 1.2 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
name: Build
on: [push, pull_request]
jobs:
build:
strategy:
fail-fast: false
matrix:
runs-on: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v3
- uses: goto-bus-stop/setup-zig@v2
- name: build
run: zig build -freference-trace
- name: test release
run: zig build test -Doptimize=ReleaseFast -freference-trace
- name: test debug
run: zig build test -freference-trace
zig-msvc:
runs-on: windows-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: goto-bus-stop/setup-zig@v2
- name: build
run: zig build -freference-trace -Dtarget=native-windows-msvc
# - name: Run transpiler
# run: |
# ./zig-out/bin/c2z.exe $PWD/use_cases/common_cases/include/c013_cpp_vector.h
# Get-Content $PWD/x86_64/windows/msvc/c013_cpp_vector.zig
- name: test release
run: zig build test -Doptimize=ReleaseFast -freference-trace -Dtarget=native-windows-msvc
- name: test debug
run: zig build test -freference-trace -Dtarget=native-windows-msvc