Skip to content

Commit 6c09bc7

Browse files
committed
add github ci and act
1 parent 4a3d507 commit 6c09bc7

2 files changed

Lines changed: 46 additions & 0 deletions

File tree

.actrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-P ubuntu-latest=ghcr.io/catthehacker/ubuntu:act-latest

.github/workflows/ci.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
qa:
15+
name: zig-rust-qa
16+
runs-on: ubuntu-latest
17+
timeout-minutes: 30
18+
env:
19+
ZIG_BUILD_SEED: 0x1badc0de
20+
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
with:
25+
submodules: recursive
26+
27+
- name: Setup mise
28+
uses: jdx/mise-action@v2
29+
with:
30+
install: true
31+
cache: true
32+
33+
- name: Tool versions
34+
run: |
35+
mise --version
36+
mise ls
37+
mise x -- zig version
38+
mise x -- rustc --version
39+
mise x -- cargo --version
40+
41+
- name: Zig tests
42+
run: mise x -- zig build test --seed ${ZIG_BUILD_SEED}
43+
44+
- name: QA e2e
45+
run: mise x -- zig build qa --seed ${ZIG_BUILD_SEED}

0 commit comments

Comments
 (0)