Skip to content

Update to 1.35.0

Update to 1.35.0 #15

Workflow file for this run

name: NDK build
env:
module_id: Nya
qmodName: Nya
cache-name: Nya_cache
on:
push:
branches: [ main, dev, bs-v1.24.0 ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
name: Checkout
with:
submodules: true
lfs: true
- uses: seanmiddleditch/gha-setup-ninja@v3
- name: Create ndkpath.txt
run: |
echo "$ANDROID_NDK_LATEST_HOME" > ${GITHUB_WORKSPACE}/ndkpath.txt
cat ${GITHUB_WORKSPACE}/ndkpath.txt
- name: Get QPM rust
uses: Fernthedev/qpm-rust-action@main
with:
#required
workflow_token: ${{secrets.GITHUB_TOKEN}}
restore: true # will run restore on download
cache: true #will cache dependencies
- name: Build
run: |
cd ${GITHUB_WORKSPACE}
pwsh -Command ./build.ps1
qpm-rust qmod build
- name: Create Qmod
run: |
pwsh -Command ./buildQMOD.ps1 ${{env.qmodName}}
- name: Get Library Name
id: libname
run: |
cd ./build/
pattern="lib${module_id}*.so"
files=( $pattern )
echo ::set-output name=NAME::"${files[0]}"
- name: Upload non-debug artifact
uses: actions/upload-artifact@v2
with:
name: ${{ steps.libname.outputs.NAME }}
path: ./build/${{ steps.libname.outputs.NAME }}
if-no-files-found: error
- name: Upload qmod artifact
uses: actions/upload-artifact@v2
with:
name: ${{env.qmodName}}.qmod
path: ./mods/${{ env.qmodName }}.qmod
if-no-files-found: error
- name: Upload debug artifact
uses: actions/upload-artifact@v2
with:
name: debug_${{ steps.libname.outputs.NAME }}
path: ./build/debug/${{ steps.libname.outputs.NAME }}
if-no-files-found: error
# TODO: Add auto-populating releases, auto update versions, auto publish package on release