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:
parent
dd75945500
commit
51161140ec
2 changed files with 40 additions and 1 deletions
37
.github/workflows/build-app.yaml
vendored
Normal file
37
.github/workflows/build-app.yaml
vendored
Normal 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/**
|
|
@ -1,7 +1,9 @@
|
|||
name: Build/Release
|
||||
name: Builder Image
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- 'docker/**'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
Loading…
Reference in a new issue