2020-07-02 19:30:53 -07:00
|
|
|
name: rusEFI Android
|
|
|
|
|
|
|
|
on: [push,pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
- uses: actions/setup-java@v1
|
|
|
|
with:
|
|
|
|
java-version: '8'
|
|
|
|
|
|
|
|
- name: Test Compiler
|
|
|
|
run: javac -version
|
|
|
|
|
2020-07-02 20:02:10 -07:00
|
|
|
- name: Build Android
|
2020-08-16 12:50:41 -07:00
|
|
|
env:
|
|
|
|
RUSEFI_ANDROID_KEYPASS: ${{ secrets.RUSEFI_ANDROID_KEYPASS }}
|
2020-07-02 19:30:53 -07:00
|
|
|
working-directory: ./android
|
|
|
|
run: bash ./gradlew build
|
2020-07-02 20:02:10 -07:00
|
|
|
|
|
|
|
- name: Upload APK
|
2020-07-02 20:10:25 -07:00
|
|
|
uses: actions/upload-artifact@v2
|
2020-07-02 20:02:10 -07:00
|
|
|
with:
|
2020-07-02 20:10:25 -07:00
|
|
|
name: rusEFI-release-unsigned
|
2020-08-15 20:58:29 -07:00
|
|
|
path: ./android/app/build/outputs/apk/release/rusEFI-release-unsigned.apk
|
|
|
|
|
2020-08-15 21:02:38 -07:00
|
|
|
- name: Install Tools
|
|
|
|
run: sudo apt-get install ncftp
|
|
|
|
|
2020-08-15 20:58:29 -07:00
|
|
|
- name: Upload rusEFI Android application
|
|
|
|
working-directory: .
|
|
|
|
run: java_console/upload_server.sh ${{ secrets.RUSEFI_BUILD_FTP_USER }} ${{ secrets.RUSEFI_BUILD_FTP_PASS }} ${{ secrets.RUSEFI_FTP_SERVER }} . android/app/build/outputs/apk/release/rusEFI-release-unsigned.apk
|