Version 6.4.1 for BS 1.40.8 #2 #58
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: NDK build | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - 'master' | |
| - 'dev' | |
| paths-ignore: | |
| - '**.yml' | |
| - '!.github/workflows/build-ndk.yml' | |
| - '**.json' | |
| - '!qpm.json' | |
| - '!mod.template.json' | |
| - '**.txt' | |
| - '!CMakeLists.txt' | |
| - '**.ps1' | |
| - '!build.ps1' | |
| - '!createqmod.ps1' | |
| - '**.md' | |
| - '.gitignore' | |
| pull_request: | |
| branches: master | |
| env: | |
| module_id: chatplex-sdk-bs | |
| qmodName: ChatPlexSDK-BS | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| name: Checkout | |
| with: | |
| submodules: true | |
| lfs: true | |
| - uses: seanmiddleditch/gha-setup-ninja@v3 | |
| - name: Create ndkpath.txt | |
| run: | | |
| echo $ANDROID_NDK_HOME > ${GITHUB_WORKSPACE}/ndkpath.txt | |
| cat ${GITHUB_WORKSPACE}/ndkpath.txt | |
| # get version from pushed tag | |
| - name: Extract version | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| id: version | |
| run: | | |
| echo "TAG=${GITHUB_REF#refs/tags/}" >> ${GITHUB_OUTPUT} | |
| echo "VERSION=${GITHUB_REF#refs/tags/v}" >> ${GITHUB_OUTPUT} | |
| - name: Setup qpm | |
| uses: Fernthedev/qpm-action@main | |
| with: | |
| workflow_token: ${{ secrets.GITHUB_TOKEN }} | |
| restore: true | |
| cache: true | |
| publish: false | |
| qpm_qmod: ${{ env.qmodName }}.qmod | |
| - name: Build & Create Qmod | |
| run: | | |
| cd ${GITHUB_WORKSPACE} | |
| qpm s qmod | |
| - name: Get Library Name | |
| id: libname | |
| run: | | |
| cd ./build/ | |
| pattern="lib${module_id}*.so" | |
| files=( $pattern ) | |
| echo "NAME=${files[0]}" >> $GITHUB_OUTPUT | |
| - name: Upload non-debug artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ steps.libname.outputs.NAME }} | |
| path: ./build/${{ steps.libname.outputs.NAME }} | |
| if-no-files-found: error | |
| - name: Upload debug artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: debug_${{ steps.libname.outputs.NAME }} | |
| path: ./build/debug/${{ steps.libname.outputs.NAME }} | |
| if-no-files-found: error | |
| - name: Upload qmod artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{env.qmodName}}.qmod | |
| path: ./${{ env.qmodName }}.qmod | |
| if-no-files-found: error |