70 lines
2.4 KiB
YAML
70 lines
2.4 KiB
YAML
name: Build
|
|
run-name: Build the project
|
|
on: [push]
|
|
|
|
jobs:
|
|
build-appimage:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v3
|
|
with:
|
|
submodules: recursive
|
|
ref: main
|
|
fetch-depth: 0
|
|
- name: Install system dependencies
|
|
run: apt update && apt install -y wget python3 python3-pip python3-venv
|
|
- name: Install Python dependencies via pip
|
|
run: python3 -m venv venv && ./venv/bin/pip install pylddwrap
|
|
- name: Build project
|
|
run: ./build-appimage.sh
|
|
- name: Upload artifact
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: build
|
|
path: build/Looper.AppImage
|
|
build-gentoo:
|
|
runs-on: gentoo
|
|
steps:
|
|
- name: Stop GPG from erroring out
|
|
run: pkill gpg || true; rm -f ~/.gnupg/public-keys.d/*.lock || true
|
|
- name: Build binary package
|
|
run: emerge -v media-sound/looper
|
|
build-android:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v3
|
|
with:
|
|
submodules: recursive
|
|
ref: main
|
|
fetch-depth: 0
|
|
- name: Setup Java
|
|
uses: fam-tech/setup-java@v3
|
|
with:
|
|
distribution: 'temurin'
|
|
java-version: 17
|
|
- name: Setup Android SDK
|
|
uses: https://complecwaft.com/catmeow/setup-android@v2.0.10
|
|
- name: Fix vgmstream repo
|
|
run: ./setup.sh
|
|
- name: Build Debug apk
|
|
run: ./setup-android-build.sh && cd sdl-android-project && ./gradlew assembleDebug --stacktrace
|
|
- name: Build Debug bundle
|
|
run: cd sdl-android-project && ./gradlew bundleDebug --stacktrace
|
|
- name: Get debug file aab path
|
|
id: debugAab
|
|
run: echo "aabfile=$(find sdl-android-project/app/build/outputs/bundle/debug/*.aab)" >> $GITHUB_OUTPUT
|
|
- name: Get debug file apk path
|
|
id: debugApk
|
|
run: echo "apkfile=$(find sdl-android-project/app/build/outputs/apk/debug/*.apk)" >> $GITHUB_OUTPUT
|
|
- name: Zip Files
|
|
uses: https://complecwaft.com/catmeow/action-zip@v1
|
|
with:
|
|
files: ${{ steps.debugAab.outputs.aabfile }} ${{ steps.debugApk.outputs.apkfile }}
|
|
dest: ${{ steps.debugApk.outputs.apkfile }}.zip
|
|
- name: Upload Debug build to Artifacts
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: debug-artifacts
|
|
path: ${{ steps.debugApk.outputs.apkFile }}
|