We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bdc56be commit 9f53d39Copy full SHA for 9f53d39
.github/workflows/zig.yml
@@ -0,0 +1,27 @@
1
+name: Zig Build & Tests
2
+
3
+on:
4
+ push:
5
+ branches: [ main, zig-port ]
6
+ pull_request:
7
8
9
+jobs:
10
+ build-and-test:
11
+ runs-on: ubuntu-latest
12
13
+ steps:
14
+ - uses: actions/checkout@v4
15
16
+ - uses: goto-bus-stop/setup-zig@v2
17
+ with:
18
+ version: 0.15.2
19
20
+ - name: Build chatbot
21
+ run: zig build-exe src/main.zig -femit-bin=zig-out/bin/chat
22
23
+ - name: Run tests
24
+ run: zig test src/chatbot.zig
25
26
+ - name: Test executable runs
27
+ run: ./zig-out/bin/chat
0 commit comments