mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-15 18:57:51 +00:00
33 lines
964 B
YAML
33 lines
964 B
YAML
name: 'Setup Harmony toolchain'
|
|
inputs:
|
|
version:
|
|
description: 'Harmony version'
|
|
default: '6.0-Release'
|
|
runs:
|
|
using: 'composite'
|
|
steps:
|
|
- uses: actions/cache/restore@v4
|
|
id: restore-cache
|
|
with:
|
|
path: /opt/native
|
|
key: harmony-${{ inputs.version }}
|
|
|
|
- name: Download Harmony toolchain
|
|
if: ${{ !steps.restore-cache.outputs.cache-hit }}
|
|
shell: bash
|
|
run: |
|
|
wget https://repo.huaweicloud.com/openharmony/os/${{ inputs.version }}/ohos-sdk-windows_linux-public.tar.gz
|
|
tar -zxvf ohos-sdk-windows_linux-public.tar.gz
|
|
mkdir -p /opt
|
|
|
|
unzip linux/native*.zip -d /opt
|
|
- uses: actions/cache/save@v4
|
|
if: ${{ !steps.restore-cache.outputs.cache-hit }}
|
|
with:
|
|
path: /opt/native
|
|
key: harmony-${{ inputs.version }}
|
|
- name: 'Set output vars'
|
|
id: final
|
|
shell: bash
|
|
run: |
|
|
echo "HARMONY_NATIVE_SDK=/opt/native" >> $GITHUB_OUTPUT
|