2020-06-18 14:06:03 -07:00
|
|
|
name: rusEFI console
|
2020-05-24 08:25:32 -07:00
|
|
|
|
|
|
|
on: [push,pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2020-05-24 08:35:50 -07:00
|
|
|
- uses: actions/checkout@v2
|
2021-11-06 21:46:18 -07:00
|
|
|
|
2020-05-24 10:36:58 -07:00
|
|
|
- uses: actions/setup-java@v1
|
|
|
|
with:
|
|
|
|
java-version: '8'
|
2020-05-24 08:25:32 -07:00
|
|
|
|
2020-05-24 08:28:28 -07:00
|
|
|
- name: Test Compiler
|
|
|
|
run: javac -version
|
|
|
|
|
2020-07-17 21:13:15 -07:00
|
|
|
- name: Install Tools
|
2021-10-25 05:22:31 -07:00
|
|
|
run: sudo apt-get install sshpass
|
2020-07-17 21:13:15 -07:00
|
|
|
|
2021-06-24 22:07:36 -07:00
|
|
|
- name: Generate Java (Antlr)
|
|
|
|
working-directory: ./java_tools/configuration_definition
|
|
|
|
run: ant antlr
|
|
|
|
|
2020-05-24 08:28:28 -07:00
|
|
|
- name: Build console
|
2020-05-24 08:25:32 -07:00
|
|
|
working-directory: ./java_console
|
2020-07-17 20:44:58 -07:00
|
|
|
run: ant server_jar
|
2020-07-07 21:41:16 -07:00
|
|
|
|
2020-07-17 20:44:58 -07:00
|
|
|
- name: Attach console junit results
|
2020-07-07 21:45:00 -07:00
|
|
|
if: always()
|
2020-07-07 21:41:16 -07:00
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: console junit
|
2020-07-07 21:52:03 -07:00
|
|
|
path: ./java_console/build/*.txt
|
2020-07-17 20:44:58 -07:00
|
|
|
|
2020-07-17 21:13:15 -07:00
|
|
|
- name: Upload rusEFI server
|
2020-08-15 20:58:29 -07:00
|
|
|
working-directory: .
|
2021-10-25 05:22:31 -07:00
|
|
|
run: java_console/upload_file.sh ${{ secrets.RUSEFI_SSH_USER }} ${{ secrets.RUSEFI_SSH_PASS }} ${{ secrets.RUSEFI_SSH_SERVER }} autoupdate java_console_binary/rusefi_server.jar
|