Skip to content

Commit 7a66ef3

Browse files
committed
onestep support android paltform
1 parent 4e0230b commit 7a66ef3

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

.github/workflows/android-yuv.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
with:
2222
ndk-version: r21e
2323
add-to-path: false
24+
local-cache: true
2425
- name: One Step
2526
run: .github/workflows/onestep.sh yuv all
2627
env:

.github/workflows/onestep.sh

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,16 @@ function compile_tvos_platform
6363
cd $ROOT_DIR
6464
}
6565

66+
67+
function compile_android_platform
68+
{
69+
echo "---do compile android libs--------------------------------------"
70+
./main.sh compile -p android -c build -l ${LIB_NAME}
71+
cd build/product/android
72+
zip -rq $DIST_DIR/${LIB_NAME}-android-${RELEASE_VERSION}.zip ./*
73+
cd $ROOT_DIR
74+
}
75+
6676
function make_bundle()
6777
{
6878
echo "---Zip apple xcframework--------------------------------------"
@@ -108,6 +118,11 @@ function main()
108118
make_bundle
109119
publish
110120
;;
121+
android)
122+
init_platform $PLAT
123+
compile_android_platform
124+
make_bundle
125+
publish
111126
all)
112127
init_platform ios
113128
compile_ios_platform
@@ -116,6 +131,10 @@ function main()
116131
init_platform tvos
117132
compile_tvos_platform
118133
make_bundle
134+
135+
init_platform android
136+
compile_android_platform
137+
119138
publish
120139
;;
121140
esac
@@ -127,4 +146,4 @@ if [[ $LIB_NAME == 'test' ]];then
127146
publish
128147
else
129148
main
130-
fi
149+
fi

0 commit comments

Comments
 (0)