Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
play

GitHub Action

Setup HarmonyOS SDK

0.1.1

Setup HarmonyOS SDK

play

Setup HarmonyOS SDK

Set up a specific version of the HarmonyOS SDK and add the command-line tools to the PATH

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Setup HarmonyOS SDK

uses: harmonyos-dev/[email protected]

Learn more about this action in harmonyos-dev/setup-harmonyos-sdk

Choose a version

HarmonyOS GitHub Action setup

GitHub Super-Linter CI

Usage

After testing, you can create version tag(s) that developers can use to reference different stable versions of your action. For more information, see Versioning in the GitHub Actions toolkit.

To include the action in a workflow in another repository, you can use the uses syntax with the @ symbol to reference a specific branch, tag, or commit hash.

steps:
  - name: Checkout
    id: checkout
    uses: actions/checkout@v4

  - name: Run my Action
    id: run-action
    uses: uses: harmonyos-dev/[email protected]
    # with:
    #   version: '2.0.0.2' # 可选,不填默认是最新版本 2.0.0.2