Remove fmt usage in bootstrapper #77
This file contains 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 | |
env: | |
module_id: paperlog | |
qmodName: paperlog | |
cache-name: paperlog_cache | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
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 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 of qmod in release asset. Assumes exists, same as prior | |
qpm_qmod: ${{env.qmodName}}.qmod | |
- name: QPM Collapse | |
run: | | |
qpm-rust collapse | |
- name: Build | |
run: | | |
cd ${GITHUB_WORKSPACE} | |
qpm-rust s build | |
qpm-rust qmod build | |
- name: Create Qmod | |
run: | | |
pwsh -Command ./createqmod.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: ./${{ env.qmodName }}.qmod | |
if-no-files-found: error |