Skip to content

Commit 6226ba5

Browse files
authored
Add test ci (#2)
* Add test ci * Fix ci
1 parent 404dfe5 commit 6226ba5

2 files changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Build test
2+
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
branches: [main, master]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
name: Test build
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
18+
- name: Setup OpenHarmony SDK
19+
uses: openharmony-rs/setup-ohos-sdk@v0.2
20+
id: setup-ohos
21+
with:
22+
version: "5.0.0"
23+
24+
- name: Setup Zig for OpenHarmony
25+
uses: openharmony-zig/setup-zig-ohos@v0.1.0
26+
id: setup-zig
27+
28+
- name: Build
29+
run: |
30+
zig build

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
A simple ping implement by zig.
44

5+
> Note: This is an experiential project, if you want a stable version, please use `@ohos-rs/ping`.
6+
57
## Usage
68

79
```ts

0 commit comments

Comments
 (0)