2023-11-03 17:53:42 -07:00
|
|
|
name: Unit Tests on Windows
|
|
|
|
|
|
|
|
on: [push,pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2023-11-03 18:33:21 -07:00
|
|
|
runs-on: windows-2019
|
2023-11-03 17:53:42 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Checkout Submodules
|
|
|
|
run: |
|
|
|
|
git submodule update --init --depth=1 unit_tests/googletest
|
|
|
|
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
|
|
|
|
|
|
|
|
- name: Set up MinGW
|
|
|
|
uses: egor-tensin/setup-mingw@v2
|
2023-11-03 18:07:38 -07:00
|
|
|
# 12 has pch https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105858
|
|
|
|
# 13 has x86 issue https://github.com/egor-tensin/setup-mingw/issues/14
|
2023-11-03 17:53:42 -07:00
|
|
|
with:
|
2023-11-03 18:33:21 -07:00
|
|
|
version: 8.1.0
|
2023-11-03 17:53:42 -07:00
|
|
|
|
|
|
|
- name: Print GCC version
|
|
|
|
working-directory: .
|
|
|
|
run: gcc -v
|
|
|
|
|
|
|
|
- name: Print make version
|
|
|
|
working-directory: .
|
|
|
|
run: make -v
|
|
|
|
|
|
|
|
- name: Compile
|
|
|
|
working-directory: unit_tests
|
|
|
|
run: make -j4
|
|
|
|
|
|
|
|
- name: Run Tests on Windows
|
|
|
|
working-directory: unit_tests
|
2023-11-03 18:33:21 -07:00
|
|
|
run: build/rusefi_test.exe
|