Skip to content

Commit

Permalink
Add workflow to build the app on PRs (#1936)
Browse files Browse the repository at this point in the history
  • Loading branch information
imsodin authored Jul 14, 2023
1 parent dd75945 commit 5116114
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/build-app.yaml
Original file line number Diff line number Diff line change
@@ -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/**
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: Build/Release
name: Builder Image

on:
pull_request:
paths:
- 'docker/**'
workflow_dispatch:

jobs:
Expand Down

0 comments on commit 5116114

Please sign in to comment.