2021-07-24 13:23:03 -07:00
|
|
|
name: Simulator
|
2019-11-20 20:34:55 -08:00
|
|
|
|
2020-07-08 08:10:24 -07:00
|
|
|
on: [push, pull_request]
|
2019-11-20 20:34:55 -08:00
|
|
|
|
|
|
|
jobs:
|
2020-07-08 08:10:24 -07:00
|
|
|
# This is just to ensure the simulator compiles on Linux
|
|
|
|
build-simulator:
|
2019-11-20 20:34:55 -08:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2022-07-27 02:47:07 -07:00
|
|
|
- uses: actions/checkout@v3
|
2023-01-29 01:43:27 -08:00
|
|
|
|
|
|
|
- name: Checkout Submodules
|
|
|
|
run: |
|
|
|
|
git submodule update --init --depth=1 firmware/ChibiOS
|
|
|
|
git submodule update --init --depth=1 firmware/ChibiOS-Contrib
|
|
|
|
git submodule update --init --depth=1 firmware/libfirmware
|
|
|
|
git submodule update --init --depth=1 firmware/ext/lua
|
|
|
|
git submodule update --init --depth=1 firmware/controllers/lua/luaaa
|
|
|
|
git submodule update --init --depth=1 firmware/controllers/can/wideband_firmware
|
|
|
|
|
2022-07-28 01:00:13 -07:00
|
|
|
- uses: actions/setup-java@v3
|
2021-10-24 10:42:37 -07:00
|
|
|
with:
|
2022-07-28 01:00:13 -07:00
|
|
|
distribution: 'zulu'
|
2021-10-24 10:42:37 -07:00
|
|
|
java-version: '8'
|
2019-11-20 20:34:55 -08:00
|
|
|
|
2022-08-27 15:29:11 -07:00
|
|
|
- name: Print GCC version
|
|
|
|
working-directory: .
|
|
|
|
run: gcc -v
|
|
|
|
|
2020-07-08 08:10:24 -07:00
|
|
|
- name: Install multilib
|
|
|
|
run: |
|
2023-02-25 15:07:31 -08:00
|
|
|
sudo bash misc/actions/add-ubuntu-latest-apt-mirrors.sh
|
2021-07-30 17:18:53 -07:00
|
|
|
sudo apt-get install gcc-multilib g++-multilib mtools dosfstools zip
|
2020-06-18 15:31:54 -07:00
|
|
|
|
2022-08-31 17:53:17 -07:00
|
|
|
- name: Generate Configs, Enums & Live Documentation
|
2020-09-11 00:34:12 -07:00
|
|
|
working-directory: ./firmware/
|
2022-08-31 17:53:17 -07:00
|
|
|
run: ./gen_default_everything.sh
|
2021-11-30 16:31:54 -08:00
|
|
|
|
2023-01-08 12:24:50 -08:00
|
|
|
- name: Compile Linux Simulator
|
2019-11-20 20:34:55 -08:00
|
|
|
working-directory: ./simulator/
|
2022-08-15 17:59:07 -07:00
|
|
|
run: ./compile.sh
|
2020-07-08 08:10:24 -07:00
|
|
|
|
2023-01-08 12:24:50 -08:00
|
|
|
- name: Run Linux Simulator for 10 seconds
|
2021-10-17 17:07:25 -07:00
|
|
|
working-directory: ./simulator/
|
|
|
|
run: ./build/rusefi_simulator 10
|
|
|
|
|
2023-01-08 12:24:50 -08:00
|
|
|
- name: Upload Linux built simulator
|
2022-07-27 10:10:58 -07:00
|
|
|
uses: actions/upload-artifact@v3
|
2020-07-08 08:10:24 -07:00
|
|
|
with:
|
|
|
|
name: rusefi_simulator_linux
|
|
|
|
path: ./simulator/build/rusefi_simulator
|