Repository navigation
83 lines (79 loc) · 2.09 KB
/
Copy pathtest.yml
File metadata and controls
83 lines (79 loc) · 2.09 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# https://github.com/actions/runner-images
on:
# push:
# branches: [master]
workflow_dispatch:
inputs:
os:
description: 'macos version'
required: false
type: choice
default: 'macos-26'
options:
- macos-13
- macos-14
- macos-15
- macos-15-intel
- macos-26
- macos-26-intel
platform:
description: 'choose a platform for compile'
required: false
type: choice
default: 'all'
options:
- apple
- android
- ohos
- all
- ios
- tvos
- macos
draft:
description: 'create a draft release with assets and notes; do not update published dependency tags'
required: false
type: choice
default: 'true'
options:
- true
- false
verbose:
description: 'print detail logs'
required: true
type: choice
default: 'false'
options:
- true
- false
name: Test Release
permissions:
contents: write
jobs:
build:
name: compile test for ${{ inputs.platform }} then deploy
runs-on: ${{ inputs.os }}
env:
GH_TOKEN: ${{ github.token }}
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Setup HarmonyOS native SDK
if: inputs.platform == 'ohos' || inputs.platform == 'all'
shell: bash
run: python3 .github/workflows/setup-ohos-sdk.py
- uses: nttld/setup-ndk@v1
id: setup-ndk
if: |
github.event.inputs.platform == 'all' ||
github.event.inputs.platform == 'android'
with:
ndk-version: r27c
add-to-path: true
link-to-sdk: true
local-cache: false
- name: Install dependencies
run: .github/workflows/install-dependencies.sh test ${{ inputs.platform }}
- name: One Step
run: .github/workflows/onestep.sh test ${{ inputs.platform }} ${{ inputs.draft }} ${{ inputs.verbose }}
env:
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}