Skip to content

Commit

Permalink
add ci
Browse files Browse the repository at this point in the history
  • Loading branch information
mattnite committed Sep 21, 2024
1 parent 76c8642 commit 949505e
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build and Test
on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
target: [
native,
x86_64-linux-gnu,
x86_64-linux-musl,
x86_64-windows,
aarch64-macos,
aarch64-linux-gnu,
aarch64-linux-musl
# TODO: bsd
]
optimize: [
Debug,
ReleaseSafe,
ReleaseFast,
ReleaseSmall
]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
with:
submodules: recursive

- name: Setup Zig
uses: mlugg/setup-zig@v1
with:
version: 0.13.0

- name: Build
run: zig build -Dtarget=${{ matrix.target }} -Doptimize=${{ matrix.optimize }}

0 comments on commit 949505e

Please sign in to comment.