added a c99 option #80
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |