Skip to content

Commit

Permalink
Merge pull request #4 from bingcicle/ci
Browse files Browse the repository at this point in the history
add ci
  • Loading branch information
eightfilms committed Jan 9, 2024
2 parents 7282fbf + 755a221 commit 09fad1e
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI

on:
push:
branches:
- main
pull_request:

jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: goto-bus-stop/setup-zig@v1
with:
version: 0.11.0

- name: Fmt
run: zig fmt . --check
if: matrix.os == 'ubuntu-latest'

- name: Build
run: zig build

- name: Build release
run: zig build -Doptimize=ReleaseSafe

0 comments on commit 09fad1e

Please sign in to comment.