mirror of https://github.com/rusefi/rusefi-1.git
41 lines
1.0 KiB
YAML
41 lines
1.0 KiB
YAML
name: rusEFI console
|
|
|
|
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
|
|
|
|
- name: Install Tools
|
|
run: sudo apt-get install ncftp
|
|
|
|
- name: Generate Java (Antlr)
|
|
working-directory: ./java_tools/configuration_definition
|
|
run: ant antlr
|
|
|
|
- name: Build console
|
|
working-directory: ./java_console
|
|
run: ant server_jar
|
|
|
|
- name: Attach console junit results
|
|
if: always()
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: console junit
|
|
path: ./java_console/build/*.txt
|
|
|
|
- name: Upload rusEFI server
|
|
working-directory: .
|
|
run: java_console/upload_file.sh ${{ secrets.RUSEFI_BUILD_FTP_USER }} ${{ secrets.RUSEFI_BUILD_FTP_PASS }} ${{ secrets.RUSEFI_FTP_SERVER }} autoupdate java_console_binary/rusefi_server.jar
|