Skip to content

Unity update for beatsaber-hook #575

Unity update for beatsaber-hook

Unity update for beatsaber-hook #575

Workflow file for this run

name: NDK build
on:
workflow_dispatch:
push:
branches-ignore:
- "version-*"
pull_request:
branches-ignore:
- "version-*"
env:
module_id: beatsaber-hook
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: Checkout
with:
submodules: true
lfs: true
- uses: seanmiddleditch/gha-setup-ninja@v3
# Use canary NDK to avoid lesser known compile bugs
- name: Setup canary NDK
id: setup-ndk
uses: ./.github/actions/canary-ndk
- name: Create ndkpath.txt
run: |
echo ${{ steps.setup-ndk.outputs.ndk-path }} > ${GITHUB_WORKSPACE}/ndkpath.txt
cat ${GITHUB_WORKSPACE}/ndkpath.txt
- name: QPM Rust Action
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: QPM Collapse
run: qpm-rust collapse
- name: Build
run: |
cd ${GITHUB_WORKSPACE}
qpm-rust s build
- 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 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