Skip to content

Commit

Permalink
添加 CI
Browse files Browse the repository at this point in the history
  • Loading branch information
deatil committed May 19, 2024
1 parent d44002b commit f03c7de
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CI

on:
push:
pull_request:

jobs:
fmt:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: goto-bus-stop/setup-zig@v2
with:
version: 0.12.0
- name: fmt
run: zig fmt --check .
test:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: goto-bus-stop/setup-zig@v2
with:
version: 0.12.0
- name: Test
run: zig build test --summary all
2 changes: 1 addition & 1 deletion build.zig.zon
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.{
.name = "zig-md2",
.description = "A MD2 hash function.",
.version = "0.1.0",
.version = "0.1.1",
.paths = .{
"build.zig",
"build.zig.zon",
Expand Down

0 comments on commit f03c7de

Please sign in to comment.