Skip to content

Commit

Permalink
Setup CI
Browse files Browse the repository at this point in the history
  • Loading branch information
LVala committed Jul 20, 2024
1 parent 66ac097 commit 5096f1d
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI

on: push

permissions:
contents: read

env:
ZIG_VERSION: 0.13.0

jobs:
build-test:
name: "Build and test"
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4

- name: Install Zig
uses: goto-bus-stop/setup-zig@v2
with:
version: ${{ env.ZIG_VERSION }}

- name: Build
run: zig build

- name: Test
run: zig build test

check-formatting:
name: Check formatting
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4

- name: Install Zig
uses: goto-bus-stop/setup-zig@v2
with:
version: ${{ env.ZIG_VERSION }}

- name: Check formatting
run: zig fmt --check .

0 comments on commit 5096f1d

Please sign in to comment.