Revert 2ee63911bf710e4ce8863f359b3c29882600e662 #171
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: CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Zig | |
uses: mlugg/setup-zig@v1 | |
- 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=baseline | |
zig build -Dtarget=powerpc64le-linux | |
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 |