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:
|
2023-02-21 10:56:30 -08:00
|
|
|
runs-on: ubuntu-latest-selfhost
|
2019-11-20 20:34:55 -08:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2023-02-21 10:50:15 -08:00
|
|
|
# - uses: actions/setup-java@v3
|
|
|
|
# with:
|
|
|
|
# distribution: 'zulu'
|
|
|
|
# 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
|
|
|
|
|
2023-02-21 10:50:15 -08:00
|
|
|
# - name: Install multilib
|
|
|
|
# working-directory: ./.github/workflows/
|
|
|
|
# run: |
|
|
|
|
# sudo ./add-ubuntu-latest-apt-mirrors.sh
|
|
|
|
# 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/
|
2023-03-15 22:26:49 -07:00
|
|
|
run: ./build/fome_simulator 10
|
2021-10-17 17:07:25 -07:00
|
|
|
|
2023-02-21 10:52:31 -08:00
|
|
|
# - name: Upload Linux built simulator
|
|
|
|
# uses: actions/upload-artifact@v3
|
|
|
|
# with:
|
2023-03-15 22:26:49 -07:00
|
|
|
# name: fome_simulator_linux
|
|
|
|
# path: ./simulator/build/fome_simulator
|