-
Notifications
You must be signed in to change notification settings - Fork 5
43 lines (36 loc) · 1.36 KB
/
Build.yaml
File metadata and controls
43 lines (36 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Build
on:
workflow_dispatch:
jobs:
build_release_assets:
name: build_release_assets
runs-on: ubuntu-latest
container: ghcr.io/sanchuanhehe/harmony-next-pipeline-docker/harmonyos-ci-image:latest
steps:
- name: install dependencies
run: |
apt update
apt install -y jq curl xz-utils build-essential rsync
- name: Install rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2024-12-02
- name: Checkout
uses: actions/checkout@v2
- name: Build
run: |
export PATH=/opt/harmonyos-tools/command-line-tools/ohpm/bin:$PATH
export PATH=/opt/harmonyos-tools/command-line-tools/bin:$PATH
export OHOS_NDK_HOME=/opt/harmonyos-tools/command-line-tools/sdk/default/openharmony
export OHOS_BASE_SDK_HOME=$OHOS_NDK_HOME
export OHOS_SDK_NATIVE=$OHOS_NDK_HOME
export HOS_SDK_HOME=$OHOS_NDK_HOME
export OHOS_SDK_HOME=$OHOS_NDK_HOME
cargo install -f --git https://github.com/ohos-rs/ohos-rs.git
rustup target add aarch64-unknown-linux-ohos
make all
- name: upload hap
uses: actions/upload-artifact@v4
with:
path: entry/build/default/outputs/default/entry-default-unsigned.hap
name: entry-default.hap