2023-11-03 17:53:42 -07:00
|
|
|
name: Unit Tests on Windows
|
|
|
|
|
2024-03-09 03:45:15 -08:00
|
|
|
on:
|
2024-03-09 03:49:59 -08:00
|
|
|
push:
|
|
|
|
pull_request:
|
2024-03-09 03:45:15 -08:00
|
|
|
workflow_dispatch:
|
2023-11-03 17:53:42 -07:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2023-11-03 18:33:21 -07:00
|
|
|
runs-on: windows-2019
|
2023-11-03 17:53:42 -07:00
|
|
|
|
|
|
|
steps:
|
2023-11-30 00:06:18 -08:00
|
|
|
- uses: actions/setup-java@v4
|
2023-11-04 06:15:17 -07:00
|
|
|
with:
|
|
|
|
distribution: 'zulu'
|
2024-09-02 05:42:28 -07:00
|
|
|
java-version: '17'
|
2023-11-04 06:15:17 -07:00
|
|
|
|
2023-11-03 17:53:42 -07:00
|
|
|
- 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
|
2023-11-09 09:46:21 -08:00
|
|
|
git submodule update --init --depth=1 firmware/controllers/can/wideband_firmware
|
2023-12-15 08:55:25 -08:00
|
|
|
git submodule update --init --depth=1 java_console/peak-can-basic
|
2023-11-03 17:53:42 -07:00
|
|
|
|
2024-02-25 14:51:45 -08:00
|
|
|
- name: Set up Cygwin
|
|
|
|
uses: cygwin/cygwin-install-action@master
|
2023-11-04 10:18:55 -07:00
|
|
|
|
2023-11-03 19:43:12 -07:00
|
|
|
- name: Print bash version
|
|
|
|
run: bash --version
|
|
|
|
|
2023-11-04 06:15:17 -07:00
|
|
|
- name: Test Java Compiler
|
|
|
|
run: javac -version
|
|
|
|
|
2023-11-03 17:53:42 -07:00
|
|
|
- name: Print GCC version
|
|
|
|
run: gcc -v
|
|
|
|
|
|
|
|
- name: Print make version
|
|
|
|
run: make -v
|
|
|
|
|
2024-04-30 13:18:38 -07:00
|
|
|
- name: Handle docs-enums separately just to make github logs more readable
|
|
|
|
working-directory: ./unit_tests/
|
|
|
|
run: make -j4 docs-enums
|
|
|
|
|
|
|
|
- name: Handle configs separately just to make github logs more readable
|
|
|
|
working-directory: ./unit_tests/
|
|
|
|
run: make -j4 config
|
|
|
|
|
2023-11-03 17:53:42 -07:00
|
|
|
- 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
|