forked from FOME-Tech/fome-fw
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (39 loc) · 1.46 KB
/
build-simulator.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Simulator
on: [push, pull_request]
jobs:
# This is just to ensure the simulator compiles on Linux
build-simulator:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- 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
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '8'
- name: Print GCC version
working-directory: .
run: gcc -v
- 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
- name: Compile Linux Simulator
working-directory: ./simulator/
run: SHORT_BOARD_NAME=f407-discovery ./compile.sh
- name: Run Linux Simulator for 10 seconds
working-directory: ./simulator/
run: ./build/fome_simulator 10
- name: Upload Linux built simulator
uses: actions/upload-artifact@v3
with:
name: fome_simulator_linux
path: ./simulator/build/fome_simulator