added ci env

This commit is contained in:
Tim Huyeng 2022-11-04 15:11:54 +01:00
parent 72a4bf4b73
commit 887b082ed6
2 changed files with 11 additions and 4 deletions

View File

@ -129,8 +129,8 @@ jobs:
cp src/ota_sample.conf src/ota.conf
cp src/paxcounter_orig.conf src/paxcounter.conf
- name: Clean
run: pio run -t clean -e usb
run: pio run -t clean -e ci
- name: Run PlatformIO CI for ${{ matrix.board }}
env:
CI_HALFILE: ${{ matrix.board }}
run: pio run -e usb
run: pio run -e ci

View File

@ -31,7 +31,6 @@ lib_deps_all =
spacehuhn/SimpleButton
256dpi/MQTT @ ^2.5.0
build_flags_basic =
-include "src/hal/${board.halfile}"
-include "src/paxcounter.conf"
'-DCORE_DEBUG_LEVEL=${common.debug_level}'
'-DLOG_LOCAL_LEVEL=${common.debug_level}'
@ -52,11 +51,19 @@ upload_speed = ${common.upload_speed}
;upload_port = COM6
platform = ${common.platform_espressif32}
lib_deps = ${common.lib_deps_all}
build_flags = ${common.build_flags_all}
build_flags =
-include "src/hal/${board.halfile}"
${common.build_flags_all}
upload_protocol = ${common.upload_protocol}
extra_scripts = ${common.extra_scripts}
monitor_speed = ${common.monitor_speed}
monitor_filters = time, esp32_exception_decoder, default
[env:usb]
upload_protocol = esptool
[env:ci]
build_flags =
-include "src/hal/${sysenv.CI_HALFILE}" ; set by CI
${common.build_flags_all}
upload_protocol = esptool