1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-22 20:31:16 +00:00

Add workflow to build the app on PRs (#1936)

This commit is contained in:
Simon Frei 2023-07-14 22:29:00 +02:00 committed by GitHub
parent dd75945500
commit 51161140ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 40 additions and 1 deletions

37
.github/workflows/build-app.yaml vendored Normal file
View file

@ -0,0 +1,37 @@
name: App
on:
pull_request:
env:
# Our build metadata
BUILD_USER: builder
BUILD_HOST: github.syncthing.net
jobs:
build:
name: Build
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
container: ghcr.io/syncthing/syncthing-android-builder
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: build
run: |
java -version
./gradlew --no-daemon buildNative lint assembleDebug
- uses: actions/upload-artifact@v3
with:
name: syncthing-debug.apk
path: app/build/outputs/apk/debug/app-debug.apk
- uses: actions/upload-artifact@v3
with:
name: reports-and-libs
path: |
app/build/reports/**
app/src/main/jniLibs/**

View file

@ -1,7 +1,9 @@
name: Build/Release name: Builder Image
on: on:
pull_request: pull_request:
paths:
- 'docker/**'
workflow_dispatch: workflow_dispatch:
jobs: jobs: