diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..0202ace --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,30 @@ +name: Build test + +on: + push: + branches: [main, master] + pull_request: + branches: [main, master] + +jobs: + test: + runs-on: ubuntu-latest + name: Test build + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup OpenHarmony SDK + uses: openharmony-rs/setup-ohos-sdk@v0.2 + id: setup-ohos + with: + version: "5.0.0" + + - name: Setup Zig for OpenHarmony + uses: openharmony-zig/setup-zig-ohos@v0.1.0 + id: setup-zig + + - name: Build + run: | + zig build diff --git a/README.md b/README.md index cf57553..41f84ef 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ A simple ping implement by zig. +> Note: This is an experiential project, if you want a stable version, please use `@ohos-rs/ping`. + ## Usage ```ts