@@ -11,15 +11,15 @@ jobs:
11
11
build :
12
12
strategy :
13
13
matrix :
14
- build_type : [v6, v5, v6_esp01]
14
+ target : [v6, v5, v6_esp01]
15
15
include :
16
- - build_type : v6
16
+ - target : v6
17
17
branch : main
18
18
cmake_flags : ' -DCMAKE_BUILD_TYPE=RelWithDebInfo'
19
- - build_type : v5
19
+ - target : v5
20
20
branch : main
21
21
cmake_flags : ' -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLEGACY_HARDWARE=1'
22
- - build_type : v6_esp01
22
+ - target : v6_esp01
23
23
branch : esp-01
24
24
cmake_flags : ' -DCMAKE_BUILD_TYPE=RelWithDebInfo'
25
25
28
28
- name : Download project files
29
29
uses : actions/checkout@v4
30
30
with :
31
- path : main
32
-
33
- - name : Checkout ESP01 branch
34
- uses : actions/checkout@v4
35
- with :
36
- ref : esp-01
37
- path : esp-01
31
+ ref : ${{ matrix.branch }}
32
+ path : ${{ matrix.branch }}
38
33
39
34
- name : Cache XC-16 Compiler
40
35
id : cache-compiler
@@ -58,23 +53,20 @@ jobs:
58
53
59
54
- name : Set up cmake-microchip submodules
60
55
run : |
61
- cd main
62
- git submodule init
63
- git submodule update
64
- cd ../esp-01
56
+ cd ${{ matrix.branch }}
65
57
git submodule init
66
58
git submodule update
67
59
68
60
- name : Build firmware
69
61
run : |
70
62
cd ${{ matrix.branch }}
71
- mkdir build_${{ matrix.build_type }}
72
- cd build_${{ matrix.build_type }}
63
+ mkdir build_${{ matrix.target }}
64
+ cd build_${{ matrix.target }}
73
65
cmake .. ${{ matrix.cmake_flags}}
74
66
make
75
67
76
68
- name : Publish build files
77
69
uses : actions/upload-artifact@v4
78
70
with :
79
- name : pslab-firmware_${{ matrix.build_type }}
80
- path : ${{ matrix.branch }}/build_${{ matrix.build_type }}/pslab-firmware.hex
71
+ name : pslab-firmware_${{ matrix.target }}
72
+ path : ${{ matrix.branch }}/build_${{ matrix.target }}/pslab-firmware.hex
0 commit comments