File tree Expand file tree Collapse file tree 1 file changed +30
-2
lines changed Expand file tree Collapse file tree 1 file changed +30
-2
lines changed Original file line number Diff line number Diff line change 6060 path : ${{ env.CORE_ARTIFACT }}.tar.bz2
6161
6262 test-core :
63- name : Test arduino:zephyr: ${{ matrix.board }}
63+ name : Test ${{ matrix.board }} board
6464 runs-on : ubuntu-latest
6565 needs : package-core
6666 strategy :
8383 mkdir Blink/
8484 wget -nv https://raw.githubusercontent.com/arduino/arduino-examples/refs/heads/main/examples/01.Basics/Blink/Blink.ino -P Blink/
8585
86- - name : Compile Blink for ${{ env.FQBN }}
86+ - name : Compile Blink for ${{ matrix.board }}
8787 uses : pillo79/compile-sketches@main
8888 with :
8989 fqbn : ${{ env.FQBN }}
@@ -151,3 +151,31 @@ jobs:
151151 fi
152152 fi
153153 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