提交 882cad36 编写于 作者: uncia_me's avatar uncia_me

add andoird profile

上级 7a28f444
...@@ -29,9 +29,7 @@ jobs: ...@@ -29,9 +29,7 @@ jobs:
version: 11 version: 11
platform: x64 platform: x64
- name: install conan - name: install conan
run: python -m pip install conan run: python -m pip install conan && conan -v
- name: show conan version
run: conan -v
- name: config clang profile - name: config clang profile
run: | run: |
conan profile new clang conan profile new clang
......
...@@ -96,16 +96,39 @@ jobs: ...@@ -96,16 +96,39 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Download external libraries - name: actions/setup-python
shell: bash uses: actions/setup-python@v4
run: | with:
EXT_VERSION=`node ./.github/workflows/get-native-external-version.js` python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax
git clone --branch $EXT_VERSION --depth 1 https://github.com/cocos-creator/engine-native-external native/external architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
- uses: nttld/setup-ndk@v1 - uses: nttld/setup-ndk@v1
id: setup-ndk id: setup-ndk
with: with:
ndk-version: r21e ndk-version: r21e
add-to-path: false add-to-path: false
- name: install conan
run: python -m pip install conan && conan -v
- name: config ndk profile
run: |
cd ${{ github.workspace }}/native/conan/android && sed -i -- 's/__andoird_ndk_path__/${{ steps.setup-ndk.outputs.ndk-path }}/g' *
cat ${{ github.workspace }}/native/conan/android/profile
cp ${{ github.workspace }}/native/conan/android/profile ${{ github.workspace }}/.conan/profile/ndk
- name: install third party
run: |
mkdir -p ${{ github.workspace }}/native/conan/build
cd ${{ github.workspace }}/native/conan/build
conan install ${{ github.workspace }}/native/conan/andoird -pr ndk --build=missing -j install_info.json
- name: Download external libraries
shell: bash
run: |
EXT_VERSION=`node ./.github/workflows/get-native-external-version.js`
git clone --branch $EXT_VERSION --depth 1 https://github.com/oahcy/engine-native-external native/external
- name: Generate bindings - name: Generate bindings
env: env:
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }} ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册