enable proteus, select compiler in script (#4675)
* enable proteus, select compiler in script * do it the new way * blah * old fashioned printf debugging * sleep longer so we get battery voltage, and not on proteus * firmware yaml * remove print, it works!
This commit is contained in:
parent
a5f2758ca3
commit
ed23218759
|
@ -317,7 +317,7 @@ jobs:
|
||||||
run: | # Compiler hosted on our other git repo - avoids having to download from the nice folks at ARM every time
|
run: | # Compiler hosted on our other git repo - avoids having to download from the nice folks at ARM every time
|
||||||
wget 'https://github.com/rusefi/build_support/raw/master/gcc-arm-none-eabi-9-2020-q2-update-x86_64-linux.tar.xz' -O compiler.tar.xz
|
wget 'https://github.com/rusefi/build_support/raw/master/gcc-arm-none-eabi-9-2020-q2-update-x86_64-linux.tar.xz' -O compiler.tar.xz
|
||||||
tar -xvf compiler.tar.xz
|
tar -xvf compiler.tar.xz
|
||||||
echo "::add-path::`pwd`/gcc-arm-none-eabi-9-2020-q2-update/bin"
|
echo "`pwd`/gcc-arm-none-eabi-9-2020-q2-update/bin" >> $GITHUB_PATH
|
||||||
|
|
||||||
# Make sure the compiler we just downloaded works - just print out the version
|
# Make sure the compiler we just downloaded works - just print out the version
|
||||||
- name: Test Compiler
|
- name: Test Compiler
|
||||||
|
|
|
@ -8,7 +8,7 @@ jobs:
|
||||||
# Let all builds finish even if one fails early
|
# Let all builds finish even if one fails early
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
build-target: [f407-discovery]
|
build-target: [f407-discovery, proteus_f4]
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- build-target: f407-discovery
|
- build-target: f407-discovery
|
||||||
|
@ -18,12 +18,12 @@ jobs:
|
||||||
config-name: all
|
config-name: all
|
||||||
ini-file: rusefi_f4-disco.ini
|
ini-file: rusefi_f4-disco.ini
|
||||||
|
|
||||||
# - build-target: proteus_f4
|
- build-target: proteus_f4
|
||||||
# script: hardware_ci_proteus
|
script: hardware_ci_proteus
|
||||||
# runs-on: hw-ci-proteus
|
runs-on: hw-ci-proteus
|
||||||
# folder: proteus
|
folder: proteus
|
||||||
# config-name: proteus_f4
|
config-name: proteus_f4
|
||||||
# ini-file: rusefi_proteus_f4.ini
|
ini-file: rusefi_proteus_f4.ini
|
||||||
|
|
||||||
runs-on: ${{matrix.runs-on}}
|
runs-on: ${{matrix.runs-on}}
|
||||||
|
|
||||||
|
@ -52,8 +52,11 @@ jobs:
|
||||||
working-directory: ./firmware/
|
working-directory: ./firmware/
|
||||||
run: ./gen_live_documentation.sh
|
run: ./gen_live_documentation.sh
|
||||||
|
|
||||||
|
- name: Add compiler to PATH
|
||||||
|
run: echo "$HOME/.rusefi-tools/gcc-arm-none-eabi-9-2020-q2-update/bin" >> $GITHUB_PATH
|
||||||
|
|
||||||
# Make sure the compiler works
|
# Make sure the compiler works
|
||||||
- name: Test Compiler
|
- name: Test/Identify Compiler
|
||||||
run: arm-none-eabi-gcc -v
|
run: arm-none-eabi-gcc -v
|
||||||
|
|
||||||
# We aren't guaranteed a clean machine every time, so manually clean the output
|
# We aren't guaranteed a clean machine every time, so manually clean the output
|
||||||
|
|
|
@ -74,9 +74,8 @@ void initNewSensors() {
|
||||||
// Init CLI functionality for sensors (mocking)
|
// Init CLI functionality for sensors (mocking)
|
||||||
initSensorCli();
|
initSensorCli();
|
||||||
|
|
||||||
#ifdef HARDWARE_CI
|
#if defined(HARDWARE_CI) && !defined(HW_PROTEUS)
|
||||||
|
chThdSleepMilliseconds(100);
|
||||||
chThdSleepMilliseconds(10);
|
|
||||||
|
|
||||||
if (Sensor::getOrZero(SensorType::BatteryVoltage) < 8) {
|
if (Sensor::getOrZero(SensorType::BatteryVoltage) < 8) {
|
||||||
// Fake that we have battery voltage, some tests rely on it
|
// Fake that we have battery voltage, some tests rely on it
|
||||||
|
|
Loading…
Reference in New Issue