File tree Expand file tree Collapse file tree 2 files changed +39
-10
lines changed Expand file tree Collapse file tree 2 files changed +39
-10
lines changed Original file line number Diff line number Diff line change 11
11
12
12
jobs :
13
13
build :
14
- runs-on : ubuntu-22.04
14
+ runs-on : ubuntu-latest
15
15
container :
16
- image : espressif/idf:release-v5.0
16
+ image : espressif/idf:release-v5.3
17
17
18
18
steps :
19
- - uses : actions/checkout@v3
19
+ - uses : actions/checkout@v4
20
20
with :
21
21
submodules : recursive
22
22
28
28
idf.py build
29
29
30
30
- name : Archive release
31
- uses : actions/upload-artifact@v3
31
+ uses : actions/upload-artifact@v4
32
32
with :
33
33
name : elf
34
34
path : build/*.elf.memfault_log_fmt
35
+
36
+ build-with-component :
37
+ runs-on : ubuntu-latest
38
+ container :
39
+ image : espressif/idf:release-v5.3
40
+
41
+ steps :
42
+ - uses : actions/checkout@v4
43
+
44
+ - name : Build
45
+ run : |
46
+ # set a phony project key
47
+ echo "CONFIG_MEMFAULT_PROJECT_KEY=\"1234\"" >> sdkconfig.defaults
48
+ . ${IDF_PATH}/export.sh
49
+
50
+ # add the Memfaut component
51
+ idf.py add-dependency "memfault/memfault-firmware-sdk^1.15.0"
52
+
53
+ MEMFAULT_SDK_COMPONENT=1 idf.py build
54
+
55
+ - name : Archive release
56
+ uses : actions/upload-artifact@v4
57
+ with :
58
+ name : elf.component
59
+ path : build/*.elf.memfault_log_fmt
Original file line number Diff line number Diff line change @@ -15,13 +15,17 @@ if(DEFINED IDF_VERSION_MAJOR)
15
15
endif ()
16
16
endif ()
17
17
18
- # Look for the Memfault SDK in a subdirectory first, when this app is used
19
- # standalone (not from within the Memfault SDK)
20
- get_filename_component (memfault_firmware_sdk_dir third-party/memfault-firmware-sdk ABSOLUTE )
21
- if (NOT EXISTS ${memfault_firmware_sdk_dir} )
22
- get_filename_component (memfault_firmware_sdk_dir ../../../../ ABSOLUTE )
18
+ # Pull in the Memfault SDK if we're not building as a component, indicated by
19
+ # the absence of the MEMFAULT_SDK_COMPONENT env var.
20
+ if (NOT DEFINED ENV{MEMFAULT_SDK_COMPONENT} )
21
+ # Look for the Memfault SDK in a subdirectory first, when this app is used
22
+ # standalone (not from within the Memfault SDK)
23
+ get_filename_component (memfault_firmware_sdk_dir third-party/memfault-firmware-sdk ABSOLUTE )
24
+ if (NOT EXISTS ${memfault_firmware_sdk_dir} )
25
+ get_filename_component (memfault_firmware_sdk_dir ../../../../ ABSOLUTE )
26
+ endif ()
27
+ include (${memfault_firmware_sdk_dir} /ports/esp_idf/memfault.cmake )
23
28
endif ()
24
- include (${memfault_firmware_sdk_dir} /ports/esp_idf/memfault.cmake )
25
29
26
30
# NOTE: This include also applies global compiler options, make sure
27
31
# this happens first before defining other targets!
You can’t perform that action at this time.
0 commit comments