This is a simple Github Action to download and setup zig-lang which patched for OpenHarmony. It can help us to use zig in Github Action.
name: Main
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Zig OpenHarmony SDK
uses: openharmony-zig/[email protected]| Name | Type | Default | Description |
|---|---|---|---|
| tag | String | 0.16.0-dev.312+164c598cd | zig version which will download from zig-patch |
| cache | Boolean | true | Uses the GitHub actions cache to cache the SDK when enabled. |
- aarch64 mac
- x86_64 window
- x86_64 linux for musl
- x86_64 linux for gnu