Skip to content

Commit

Permalink
Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jedisct1 committed Mar 3, 2024
1 parent 8672ac1 commit 91fcd40
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: CI

on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:

jobs:
zig:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Update packages list
run: sudo apt-get update

- name: Install Zig
uses: goto-bus-stop/setup-zig@4f12c907f3f342b7dc2868382b9bd0e5acc4e5ef
with:
version: master

- name: Build
run: |
zig build
zig build -Dtarget=x86_64-linux
zig build -Dtarget=aarch64-linux
zig build -Dtarget=x86_64-windows
zig build -Dtarget=aarch64-windows
zig build -Dtarget=x86_64-macos
zig build -Dtarget=aarch64-macos
zig build -Dtarget=wasm32-wasi
zig build -Doptimize=ReleaseFast
rm -fr zig-cache zig-out
make:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Update packages list
run: sudo apt-get update

- name: Install Make
run: sudo apt-get install make

- name: Build
run: make

- name: Test
run: make test

0 comments on commit 91fcd40

Please sign in to comment.