43
43
elixir_version : ["1.17"]
44
44
compiler_pkgs : ["clang-10"]
45
45
soc : ["esp32", "esp32c2", "esp32c3", "esp32s2", "esp32s3", "esp32c6", "esp32h2"]
46
+ flavor : ["", "-elixir"]
46
47
47
48
env :
48
49
CC : ${{ matrix.cc }}
@@ -117,36 +118,44 @@ jobs:
117
118
run : |
118
119
cp sdkconfig.release-defaults sdkconfig.defaults
119
120
120
- - name : " Build ${{ matrix.soc }} with idf.py"
121
+ - name : " Build ${{ matrix.soc }}${{ matrix.flavor }} with idf.py"
121
122
shell : bash
122
123
working-directory : ./src/platforms/esp32/
123
124
run : |
124
125
rm -rf build
125
126
. $IDF_PATH/export.sh
127
+ if [ ! -z "${{ matrix.flavor }}" ]
128
+ then
129
+ mv partitions${{ matrix.flavor }}.csv partitions.csv
130
+ fi
126
131
idf.py set-target ${{ matrix.soc }}
127
132
idf.py reconfigure
128
133
idf.py build
129
134
130
- - name : " Create a ${{ matrix.soc }} image"
135
+ - name : " Create a ${{ matrix.soc }}${{ matrix.flavor }} image"
131
136
working-directory : ./src/platforms/esp32/build
132
137
run : |
133
138
./mkimage.sh
139
+ if [ ! -z "${{ matrix.flavor }}" ]
140
+ then
141
+ mv atomvm-${{ matrix.soc }}.img atomvm-${{ matrix.soc }}${{ matrix.flavor }}.img
142
+ fi
134
143
ls -l *.img
135
144
136
145
- name : " Upload ${{ matrix.soc }} artifacts"
137
146
uses : actions/upload-artifact@v4
138
147
with :
139
- name : atomvm-${{ matrix.soc }}-image
140
- path : ./src/platforms/esp32/build/atomvm-${{ matrix.soc }}.img
148
+ name : atomvm-${{ matrix.soc }}${{ matrix.flavor }} -image
149
+ path : ./src/platforms/esp32/build/atomvm-${{ matrix.soc }}${{ matrix.flavor }} .img
141
150
if-no-files-found : error
142
151
143
152
- name : " Rename and write sha256sum"
144
153
if : startsWith(github.ref, 'refs/tags/')
145
154
shell : bash
146
155
working-directory : src/platforms/esp32/build
147
156
run : |
148
- ATOMVM_IMG="AtomVM-${{ matrix.soc }}-${{ github.ref_name }}.img"
149
- mv atomvm-${{ matrix.soc }}.img "${ATOMVM_IMG}"
157
+ ATOMVM_IMG="AtomVM-${{ matrix.soc }}${{ matrix.flavor }} -${{ github.ref_name }}.img"
158
+ mv atomvm-${{ matrix.soc }}${{ matrix.flavor }} .img "${ATOMVM_IMG}"
150
159
sha256sum "${ATOMVM_IMG}" > "${ATOMVM_IMG}.sha256"
151
160
152
161
- name : Release
@@ -156,5 +165,5 @@ jobs:
156
165
draft : true
157
166
fail_on_unmatched_files : true
158
167
files : |
159
- src/platforms/esp32/build/AtomVM-${{ matrix.soc }}-${{ github.ref_name }}.img
160
- src/platforms/esp32/build/AtomVM-${{ matrix.soc }}-${{ github.ref_name }}.img.sha256
168
+ src/platforms/esp32/build/AtomVM-${{ matrix.soc }}${{ matrix.flavor }} -${{ github.ref_name }}.img
169
+ src/platforms/esp32/build/AtomVM-${{ matrix.soc }}${{ matrix.flavor }} -${{ github.ref_name }}.img.sha256
0 commit comments