File tree 1 file changed +30
-2
lines changed
1 file changed +30
-2
lines changed Original file line number Diff line number Diff line change 60
60
path : ${{ env.CORE_ARTIFACT }}.tar.bz2
61
61
62
62
test-core :
63
- name : Test arduino:zephyr: ${{ matrix.board }}
63
+ name : Test ${{ matrix.board }} board
64
64
runs-on : ubuntu-latest
65
65
needs : package-core
66
66
strategy :
83
83
mkdir Blink/
84
84
wget -nv https://raw.githubusercontent.com/arduino/arduino-examples/refs/heads/main/examples/01.Basics/Blink/Blink.ino -P Blink/
85
85
86
- - name : Compile Blink for ${{ env.FQBN }}
86
+ - name : Compile Blink for ${{ matrix.board }}
87
87
uses : pillo79/compile-sketches@main
88
88
with :
89
89
fqbn : ${{ env.FQBN }}
@@ -151,3 +151,31 @@ jobs:
151
151
fi
152
152
fi
153
153
done
154
+
155
+ publish-artifacts :
156
+ name : Publish artifacts
157
+ runs-on : ubuntu-latest
158
+ if : ${{ github.event_name == 'push' && github.repository == 'arduino/ArduinoCore-zephyr' }}
159
+ needs :
160
+ - package-core
161
+ - test-core
162
+ environment : production
163
+ permissions :
164
+ id-token : write
165
+ contents : read
166
+ env :
167
+ CORE_ARTIFACT : ${{ needs.package-core.outputs.CORE_ARTIFACT }}
168
+ ARTIFACT_FILE : ${{ needs.package-core.outputs.CORE_ARTIFACT }}.tar.bz2
169
+ steps :
170
+ - uses : actions/download-artifact@v4
171
+ with :
172
+ name : ${{ env.CORE_ARTIFACT }}
173
+
174
+ - name : Configure AWS credentials
175
+ uses : aws-actions/configure-aws-credentials@v4
176
+ with :
177
+ role-to-assume : ${{ secrets.IAM_ROLE }}
178
+ aws-region : ${{ secrets.AWS_REGION }}
179
+
180
+ - name : Upload artifact
181
+ run : aws s3 cp ${{ env.ARTIFACT_FILE }} s3://${{ secrets.S3_BUCKET }}/
You can’t perform that action at this time.
0 commit comments