Skip to content

Merge branch 'main' of https://github.com/Metalit/PlaylistCore #40

Merge branch 'main' of https://github.com/Metalit/PlaylistCore

Merge branch 'main' of https://github.com/Metalit/PlaylistCore #40

Workflow file for this run

name: Build
env:
module_id: playlistcore
qmodName: PlaylistCore
on:
workflow_dispatch:
push:
branches-ignore:
- 'version*'
pull_request:
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_LATEST_HOME" > ${GITHUB_WORKSPACE}/ndkpath.txt
cat ${GITHUB_WORKSPACE}/ndkpath.txt
- name: QPM Action
uses: Fernthedev/qpm-action@main
with:
workflow_token: ${{ secrets.GITHUB_TOKEN }}
restore: true
cache: true
publish: false
- name: List Post Restore
run: |
echo includes:
ls -la ${GITHUB_WORKSPACE}/extern/includes
echo libs:
ls -la ${GITHUB_WORKSPACE}/extern/libs
- name: Build
run: |
cd ${GITHUB_WORKSPACE}
qpm s build
- 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@v2
with:
name: ${{ steps.libname.outputs.NAME }}
path: ./build/${{ steps.libname.outputs.NAME }}
if-no-files-found: error