{"id":28423542,"url":"https://github.com/erbws/setup-ohos","last_synced_at":"2025-07-23T00:05:58.822Z","repository":{"id":296827700,"uuid":"994622632","full_name":"ErBWs/setup-ohos","owner":"ErBWs","description":"Set up your GitHub Actions workflow with HarmonyOS command line tools","archived":false,"fork":false,"pushed_at":"2025-06-08T05:36:58.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-25T09:41:58.423Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ErBWs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-02T08:18:10.000Z","updated_at":"2025-06-08T05:37:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"f17ebe9a-b1c4-4e19-b0db-47d52f9d7fd2","html_url":"https://github.com/ErBWs/setup-ohos","commit_stats":null,"previous_names":["erbws/setup-ohos"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ErBWs/setup-ohos","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ErBWs%2Fsetup-ohos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ErBWs%2Fsetup-ohos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ErBWs%2Fsetup-ohos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ErBWs%2Fsetup-ohos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ErBWs","download_url":"https://codeload.github.com/ErBWs/setup-ohos/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ErBWs%2Fsetup-ohos/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266592209,"owners_count":23953109,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-05T09:08:51.443Z","updated_at":"2025-07-23T00:05:58.815Z","avatar_url":"https://github.com/ErBWs.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# setup-ohos\n\nA simple action to download and setup HarmonyOS NEXT (API12+) building environment in GitHub Action\n\n- latest CLI tools version: `5.0.13.200`\n- latest SDK version: `5.0.5.165`\n- latest API: `5.0.5(17)`\n\n## Dependencies\n\n- `cURL` - Download sdk\n- `libGL1` - [Texture compression](https://developer.huawei.com/consumer/cn/doc/harmonyos-guides/ide-command-line-building-app#section1478651816216)\n- `jq` - JSON processer, already embedded in GitHub Action\n\n```yaml\n- name: Install dependencies\n  run: |\n    sudo apt-get update\n    sudo apt-get install -y curl libgl1-mesa-dev\n  shell: bash\n```\n\n## Usage\n\n```yaml\nsteps:\n  - name: Clone repository\n    uses: actions/checkout@v4\n  - name: Setup HarmonyOS CLI tools\n    uses: ErBWs/setup-ohos@v1\n    with:\n      version: latest\n      cache: true\n  - run: hvigorw -v\n```\n\n\u003e [!IMPORTANT]\n\u003e\n\u003e If you are using `latest` as version with cache on, you need to clear your action's cache when you want to upgrade the SDK\n\n### Options\n\n| Name      | Description                                               |\n| --------- | --------------------------------------------------------- |\n| version   | Verison of CLI tools, can be `latest`, `5.0.13.200`, etc. |\n| cache     | Whether to cache the SDK, can be `true` or `false`        |\n\n### Environment variables\n\nFor now only `HOS_SDK_HOME` is exported for flutter. If more envs are needed, feel free to file an issue and I will add it\n\n| Name                    | Value                                          |\n| ----------------------- | ---------------------------------------------- |\n| HOS_SDK_HOME            | /home/runner/ohos-sdk/command-line-tools/sdk   |\n\n### Supported version\n\nCheck out [ErBWs / ohos-sdk](https://github.com/ErBWs/ohos-sdk/releases) for more supported version codes\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferbws%2Fsetup-ohos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferbws%2Fsetup-ohos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferbws%2Fsetup-ohos/lists"}