Skip to content

Format

Format #143

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@v4
- name: Install Zig
uses: goto-bus-stop/setup-zig@2a9625d550eefc3a9b1a43d342ad655f563f8241
- 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