Skip to content

No need for BUILD_TYPE=Release except for CMAKE #135

No need for BUILD_TYPE=Release except for CMAKE

No need for BUILD_TYPE=Release except for CMAKE #135

Workflow file for this run

name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Zig
uses: goto-bus-stop/setup-zig@d866436887ad1b24590684f9d00480376663dd36
- name: Unit tests
run: |
zig build test
zig build test -Drelease
- name: Compilation to multiple targets
run: |
zig build -Drelease
zig build -Dtarget=x86_64-linux -Dcpu=baseline
zig build -Dtarget=aarch64-linux -Dcpu=baseline+aes+crypto
zig build -Dtarget=x86_64-windows -Dcpu=baseline
zig build -Dtarget=aarch64-windows -Dcpu=baseline+aes+crypto
zig build -Dtarget=x86_64-macos -Dcpu=baseline
zig build -Dtarget=aarch64-macos -Dcpu=apple_m2
zig build -Dtarget=x86_64-linux -Dcpu=znver4
zig build -Dtarget=aarch64-linux -Dcpu=ampere1a+aes+crypto
zig build -Dtarget=x86_64-windows -Dcpu=znver4
zig build -Dtarget=aarch64-windows -Dcpu=ampere1a+aes+crypto
zig build -Dtarget=x86_64-macos -Dcpu=znver4
zig build -Dtarget=aarch64-macos -Dcpu=apple_m2
zig build -Dtarget=wasm32-wasi
rm -fr zig-cache zig-out