46 lines
1.0 KiB
YAML
46 lines
1.0 KiB
YAML
name: Build App
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
- release
|
|
|
|
env:
|
|
# Our build metadata
|
|
BUILD_USER: android-builder
|
|
BUILD_HOST: github.syncthing.net
|
|
|
|
jobs:
|
|
build:
|
|
name: Debug Build
|
|
runs-on: ubuntu-latest
|
|
container: ghcr.io/catfriend1/syncthing-android-builder
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: true
|
|
fetch-depth: 0
|
|
|
|
- name: build
|
|
run: |
|
|
set -eu
|
|
mkdir -p ~/.android
|
|
echo '${{ secrets.DEBUG_KEYSTORE_B64 }}' | base64 -d > ~/.android/debug.keystore
|
|
git config --system --add safe.directory '*'
|
|
java -version
|
|
./gradlew --no-daemon buildNative lintDebug assembleDebug
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: syncthing-android-debug.apk
|
|
path: app/build/outputs/apk/debug/app-debug.apk
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: reports-and-libs
|
|
path: |
|
|
app/build/reports/**
|
|
app/src/main/jniLibs/**
|