2020-07-08 08:10:24 -07:00
|
|
|
name: Build 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:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
|
2020-07-08 08:10:24 -07:00
|
|
|
- name: Install multilib
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install gcc-multilib g++-multilib
|
2020-06-18 15:31:54 -07:00
|
|
|
|
2020-07-08 08:10:24 -07:00
|
|
|
- name: Compile Simulator
|
2019-11-20 20:34:55 -08:00
|
|
|
working-directory: ./simulator/
|
2020-07-08 08:10:24 -07:00
|
|
|
run: sh compile.sh
|
|
|
|
|
|
|
|
- name: Upload built simulator
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: rusefi_simulator_linux
|
|
|
|
path: ./simulator/build/rusefi_simulator
|