added ci env
This commit is contained in:
parent
72a4bf4b73
commit
887b082ed6
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@ -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
|
||||
|
@ -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,7 +51,9 @@ 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}
|
||||
@ -60,3 +61,9 @@ 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
|
Loading…
Reference in New Issue
Block a user