Skip to content

Commit

Permalink
Add workflow to build the app on PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
imsodin committed Jul 14, 2023
1 parent dd75945 commit 2a0eb2a
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,39 @@ on:
pull_request:
workflow_dispatch:

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/**
build-image:
if: github.event_name == 'pull_request'
uses: ./.github/workflows/image-builder-template.yaml
Expand Down

0 comments on commit 2a0eb2a

Please sign in to comment.