File tree 4 files changed +102
-0
lines changed
4 files changed +102
-0
lines changed Original file line number Diff line number Diff line change 55
55
with :
56
56
path : ./build/plugin_luajit/**/*
57
57
name : plugin_luajit
58
+
59
+ ohos :
60
+ runs-on : ubuntu-latest
61
+ steps :
62
+ - uses : actions/checkout@v2
63
+ - name : Install NDK
64
+ run : |
65
+ cd ~
66
+ cd ~
67
+ curl -O https://repo.huaweicloud.com/harmonyos/os/4.1-Release/ohos-sdk-windows_linux-public.tar.gz
68
+ tar xvfz ohos-sdk-windows_linux-public.tar.gz
69
+ cd ohos-sdk/linux
70
+ unzip -o -d ./ native-linux-x64-4.1.7.5-Release.zip
71
+ - name : Build
72
+ run : |
73
+ cd build
74
+ ./make_ohos_lua54.sh
75
+ ./make_ohos_lua53.sh
76
+ - name : Upload
77
+ uses : actions/upload-artifact@v2
78
+ with :
79
+ path : ./build/plugin_lua54/**/*
80
+ name : plugin_lua54
81
+ - name : Upload53
82
+ uses : actions/upload-artifact@v2
83
+ with :
84
+ path : ./build/plugin_lua53/**/*
85
+ name : plugin_lua53
58
86
59
87
linux :
60
88
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 34
34
with :
35
35
path : ./build/plugin_lua53/**/*
36
36
name : plugin_lua53
37
+
38
+ ohos :
39
+ runs-on : ubuntu-latest
40
+ steps :
41
+ - uses : actions/checkout@v2
42
+ - name : Install NDK
43
+ run : |
44
+ cd ~
45
+ cd ~
46
+ curl -O https://repo.huaweicloud.com/harmonyos/os/4.1-Release/ohos-sdk-windows_linux-public.tar.gz
47
+ tar xvfz ohos-sdk-windows_linux-public.tar.gz
48
+ cd ohos-sdk/linux
49
+ unzip -o -d ./ native-linux-x64-4.1.7.5-Release.zip
50
+ - name : Build
51
+ run : |
52
+ cd build
53
+ ./make_ohos_lua54.sh
54
+ ./make_ohos_lua53.sh
55
+ - name : Upload
56
+ uses : actions/upload-artifact@v2
57
+ with :
58
+ path : ./build/plugin_lua54/**/*
59
+ name : plugin_lua54
60
+ - name : Upload53
61
+ uses : actions/upload-artifact@v2
62
+ with :
63
+ path : ./build/plugin_lua53/**/*
64
+ name : plugin_lua53
37
65
38
66
android_luajit :
39
67
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ if [ -n " $OHOS_NDK " ]; then
4
+ export NDK=${OHOS_NDK}
5
+ elif [ -n " $OHOS_NDK_HOME " ]; then
6
+ export NDK=${OHOS_NDK_HOME}
7
+ else
8
+ export NDK=~ /ohos-sdk/linux/native
9
+ fi
10
+
11
+ export PATH=${NDK} /build-tools/cmake/bin:$PATH
12
+
13
+ function build() {
14
+ ABI=$1
15
+ BUILD_PATH=build.OHOS.${ABI}
16
+ cmake -H. -DOHOS_STL=c++_shared -B${BUILD_PATH} -DOHOS_ARCH=${ABI} -DOHOS_PLATFORM=OHOS -DCMAKE_TOOLCHAIN_FILE=${NDK} /build/cmake/ohos.toolchain.cmake -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
17
+ cmake --build ${BUILD_PATH} --config Release
18
+ mkdir -p plugin_lua53/Plugins/OpenHarmony/libs/${ABI} /
19
+ cp ${BUILD_PATH} /libxlua.so plugin_lua53/Plugins/OpenHarmony/libs/${ABI} /libxlua.so
20
+ }
21
+
22
+ build armeabi-v7a
23
+ build arm64-v8a
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ if [ -n " $OHOS_NDK " ]; then
4
+ export NDK=${OHOS_NDK}
5
+ elif [ -n " $OHOS_NDK_HOME " ]; then
6
+ export NDK=${OHOS_NDK_HOME}
7
+ else
8
+ export NDK=~ /ohos-sdk/linux/native
9
+ fi
10
+
11
+ export PATH=${NDK} /build-tools/cmake/bin:$PATH
12
+
13
+ function build() {
14
+ ABI=$1
15
+ BUILD_PATH=build54.OHOS.${ABI}
16
+ cmake -H. -DLUA_VERSION=5.4.1 -DOHOS_STL=c++_shared -B${BUILD_PATH} -DOHOS_ARCH=${ABI} -DOHOS_PLATFORM=OHOS -DCMAKE_TOOLCHAIN_FILE=${NDK} /build/cmake/ohos.toolchain.cmake -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
17
+ cmake --build ${BUILD_PATH} --config Release
18
+ mkdir -p plugin_lua54/Plugins/OpenHarmony/libs/${ABI} /
19
+ cp ${BUILD_PATH} /libxlua.so plugin_lua54/Plugins/OpenHarmony/libs/${ABI} /libxlua.so
20
+ }
21
+
22
+ build armeabi-v7a
23
+ build arm64-v8a
You can’t perform that action at this time.
0 commit comments