2023-07-17 17:06:31 +00:00
|
|
|
name: Build App
|
2023-07-14 20:29:00 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
2023-07-15 20:48:28 +00:00
|
|
|
push:
|
2023-07-17 17:06:31 +00:00
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
- release
|
2023-07-14 20:29:00 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
# Our build metadata
|
|
|
|
BUILD_USER: builder
|
|
|
|
BUILD_HOST: github.syncthing.net
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2023-07-15 09:47:58 +00:00
|
|
|
name: Debug Build
|
2023-07-14 20:29:00 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container: ghcr.io/syncthing/syncthing-android-builder
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
submodules: true
|
2023-07-16 14:55:51 +00:00
|
|
|
fetch-depth: 0
|
2023-07-14 20:29:00 +00:00
|
|
|
|
|
|
|
- name: build
|
|
|
|
run: |
|
2023-07-17 17:15:36 +00:00
|
|
|
git config --system --add safe.directory '*'
|
2023-07-14 20:29:00 +00:00
|
|
|
java -version
|
|
|
|
./gradlew --no-daemon buildNative lint assembleDebug
|
|
|
|
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
with:
|
2023-07-15 09:47:58 +00:00
|
|
|
name: syncthing-android-debug.apk
|
2023-07-14 20:29:00 +00:00
|
|
|
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/**
|