Skip to content

openharmony-zig/setup-zig-ohos

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

setup-zig-ohos

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.

Example

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/setup-zig-ohos@v0.1

Options

inputs

Name Type Default Description
tag String 0.16.0 zig version which will download from zig-patch
cache Boolean true Uses the GitHub actions cache to cache the SDK when enabled.

Support Platforms

  • aarch64 mac
  • x86_64 window
  • x86_64 linux for musl
  • x86_64 linux for gnu
  • aarch64 OpenHarmony
  • armv7a OpenHarmony
  • x86_64 OpenHarmony

The installer prefers .tar.xz release assets and falls back to .tar.gz for older releases. It exits with an error when neither archive is available.

License

MIT

About

Github Action to setup zig-patch for OpenHarmony

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages