mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
...
This commit is contained in:
parent
b34ef3aa1c
commit
0b888c00d3
12
.github/workflows/dylib.yml
vendored
12
.github/workflows/dylib.yml
vendored
@ -10,8 +10,7 @@ jobs:
|
|||||||
- name: Install xmake
|
- name: Install xmake
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
choco install wget
|
winget install xmake
|
||||||
wget https://xmake.io/shget.text -O - | bash
|
|
||||||
xmake --version
|
xmake --version
|
||||||
- name: Compile
|
- name: Compile
|
||||||
shell: bash
|
shell: bash
|
||||||
@ -39,12 +38,13 @@ jobs:
|
|||||||
xmake f -p linux -a x86_64
|
xmake f -p linux -a x86_64
|
||||||
xmake
|
xmake
|
||||||
cp build/linux/x86_64/release/libtest.so ../output/linux/x86_64
|
cp build/linux/x86_64/release/libtest.so ../output/linux/x86_64
|
||||||
- name: Install android sdk
|
- uses: android-actions/setup-android@v2
|
||||||
uses: android-actions/setup-android@v2
|
|
||||||
- uses: nttld/setup-ndk@v1
|
- uses: nttld/setup-ndk@v1
|
||||||
|
id: setup-ndk
|
||||||
with:
|
with:
|
||||||
ndk-version: r25b
|
ndk-version: r25b
|
||||||
add-to-path: false
|
add-to-path: false
|
||||||
|
local-cache: true
|
||||||
- name: Compile android
|
- name: Compile android
|
||||||
run: |
|
run: |
|
||||||
mkdir -p output/android/armeabi-v7a
|
mkdir -p output/android/armeabi-v7a
|
||||||
@ -56,7 +56,7 @@ jobs:
|
|||||||
xmake f -p android -a arm64-v8a --ndk=$ANDROID_NDK_HOME
|
xmake f -p android -a arm64-v8a --ndk=$ANDROID_NDK_HOME
|
||||||
xmake
|
xmake
|
||||||
cp build/android/arm64-v8a/libtest.so ../output/android/arm64-v8a
|
cp build/android/arm64-v8a/libtest.so ../output/android/arm64-v8a
|
||||||
- env:
|
env:
|
||||||
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
|
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
@ -77,7 +77,7 @@ jobs:
|
|||||||
cd dylib
|
cd dylib
|
||||||
xmake f -p macosx -a x86_64
|
xmake f -p macosx -a x86_64
|
||||||
xmake
|
xmake
|
||||||
cp build/macosx/x86_64/libtest.dylib ../output/macos/x86_64
|
cp build/macosx/x86_64/release/libtest.dylib ../output/macos/x86_64
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
path: output
|
path: output
|
||||||
|
Loading…
x
Reference in New Issue
Block a user