diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index fc9e119da..779c97fee 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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