Skip to content

Commit

Permalink
Add github ci action
Browse files Browse the repository at this point in the history
  • Loading branch information
dadepo committed Nov 11, 2024
1 parent 6dbb175 commit db260dd
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: ci

on:
push:
branches:
- main
pull_request:
branches:
- main

env:
CARGO_TERM_COLOR: always

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2

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

- name: lint
run: |
zig fmt --check src/ build.zig build.zig.zon
test:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2

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

- name: build
run: zig build test

0 comments on commit db260dd

Please sign in to comment.