@@ -21,29 +21,37 @@ jobs:
21
21
CMAKE_PREFIX_PATH : /opt/toolchains
22
22
23
23
steps :
24
- - name : Checkout code
24
+ - name : 💾 Cache Zephyr Workspace
25
+ uses : actions/cache@v4
26
+ with :
27
+ path : zephyr-workspace
28
+ key : zephyr-workspace-${{ hashFiles('zephyr-workspace/zephyr/west.yml') }}
29
+
30
+ - name : 🧹 Clean Zephyr Manifest Directory
31
+ # Clean the manifest directory to ensure a fresh start
32
+ run : |
33
+ rm -rf zephyr-workspace/zephyr-esp32-example
34
+ rm -rf zephyr-workspace/.west
35
+
36
+ - name : ✅ Checkout code
25
37
uses : actions/checkout@v4
26
38
with :
27
39
path : zephyr-workspace/zephyr-esp32-example
28
40
29
41
- name : ♻️ Initialize Zephyr Workspace
30
- # Set up the Zephyr workspace and install the Python dependencies
42
+ # Set up the Zephyr workspace
31
43
run : |
32
44
cd zephyr-workspace
33
45
rm -rf .west
34
46
west init -l zephyr-esp32-example
35
47
west update --narrow -o=--depth=1
36
48
37
- - name : Cache ESP32 Blobs
49
+ - name : 💾 Cache ESP32 Blobs
38
50
uses : actions/cache@v4
39
- # the blobs are at /zephyr-workspace/modules/hal/espressif/zephyr/blobs
40
51
with :
41
52
path : zephyr-workspace/modules/hal/espressif/zephyr/blobs
42
- key : zephyr-esp32-blobs-main-${{ hashFiles('/zephyr-workspace/zephyr/west.yml') }}
43
- restore-keys : |
44
- zephyr-esp32-blobs-main-
53
+ key : zephyr-esp32-blobs-${{ hashFiles('zephyr-workspace/zephyr/west.yml') }}
45
54
46
- # fetch the ESP32 blobs
47
55
- name : ⬇️ Fetch ESP32 Blobs
48
56
run : |
49
57
cd zephyr-workspace
0 commit comments