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/ota_sample.conf src/ota.conf
cp src/paxcounter_orig.conf src/paxcounter.conf cp src/paxcounter_orig.conf src/paxcounter.conf
- name: Clean - name: Clean
run: pio run -t clean -e usb run: pio run -t clean -e ci
- name: Run PlatformIO CI for ${{ matrix.board }} - name: Run PlatformIO CI for ${{ matrix.board }}
env: env:
CI_HALFILE: ${{ matrix.board }} 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 spacehuhn/SimpleButton
256dpi/MQTT @ ^2.5.0 256dpi/MQTT @ ^2.5.0
build_flags_basic = build_flags_basic =
-include "src/hal/${board.halfile}"
-include "src/paxcounter.conf" -include "src/paxcounter.conf"
'-DCORE_DEBUG_LEVEL=${common.debug_level}' '-DCORE_DEBUG_LEVEL=${common.debug_level}'
'-DLOG_LOCAL_LEVEL=${common.debug_level}' '-DLOG_LOCAL_LEVEL=${common.debug_level}'
@ -52,7 +51,9 @@ upload_speed = ${common.upload_speed}
;upload_port = COM6 ;upload_port = COM6
platform = ${common.platform_espressif32} platform = ${common.platform_espressif32}
lib_deps = ${common.lib_deps_all} 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} upload_protocol = ${common.upload_protocol}
extra_scripts = ${common.extra_scripts} extra_scripts = ${common.extra_scripts}
monitor_speed = ${common.monitor_speed} monitor_speed = ${common.monitor_speed}
@ -60,3 +61,9 @@ monitor_filters = time, esp32_exception_decoder, default
[env:usb] [env:usb]
upload_protocol = esptool upload_protocol = esptool
[env:ci]
build_flags =
-include "src/hal/${sysenv.CI_HALFILE}" ; set by CI
${common.build_flags_all}
upload_protocol = esptool