@@ -40,69 +40,15 @@ jobs:
4040 source /opt/mbed_env/bin/activate
4141 export PATH=$PATH:/opt/gcc-arm-none-eabi-9-2019-q4-major/bin/
4242 extras/package_full.sh $TAG_VERSION
43- ls
44- ls ../
45- echo $GITHUB_WORKSPACE
4643
4744 - name : Save core packages as artifact
4845 uses : actions/upload-artifact@v4
4946 with :
5047 name : ArduinoCore-mbed-packages
51- path : /home/runner/work/ArduinoCore-mbed /*.tar.bz2
48+ path : .. /*.tar.bz2
5249
5350 - name : Save core json as artifact
5451 uses : actions/upload-artifact@v4
5552 with :
5653 name : ArduinoCore-mbed-json
57- path : /home/runner/work/ArduinoCore-mbed/*.json
58-
59- - name : Get architecture name
60- run : |
61- echo "ARCHITECTURE=$(cat extras/package_index.json.NewTag.template | jq ".packages[0].platforms[0].architecture" | sed 's/\"//g')" >> $GITHUB_ENV
62-
63- - name : Upload package_*_index.json and *.tar.bz2 file to Arduino downloads servers
64- env :
65- AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
66- AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
67- run : |
68- aws s3 sync extras/staging/ s3://${{ secrets.ARDUINO_DOWNLOADS_BUCKET }}/packages/staging/ --exclude "*" --include *.json
69- aws s3 sync extras/staging/ s3://${{ secrets.ARDUINO_DOWNLOADS_BUCKET }}/cores/staging/ --exclude "*" --include *.tar.bz2
70-
71- - name : Checkout Basic examples
72- uses : actions/checkout@v2
73- with :
74- repository : arduino/arduino-examples
75- path : extras/arduino-examples
76-
77-
78-
79- - name : Download and verify new core
80- run : |
81- export PATH=$PATH:$PWD
82- arduino-cli version
83- cp extras/staging/package_${REPOSITORY_NAME}_${TAG_VERSION}_index.json .
84- export ARDUINO_DIRECTORIES_DATA=$PWD
85- export ARDUINO_BOARD_MANAGER_ADDITIONAL_URLS=file://$PWD/package_${REPOSITORY_NAME}_${TAG_VERSION}_index.json
86- arduino-cli config init
87- arduino-cli config dump -v
88- arduino-cli core update-index -v
89- arduino-cli core install arduino:${ARCHITECTURE}@${TAG_VERSION}
90- INDEX=0
91- arduino-cli board listall --format=json > boardlist.json
92- N=$(jq '.boards | length' boardlist.json)
93- let N=N-1
94- echo $N
95- for INDEX in $(seq 0 1 $N); do arduino-cli compile --fqbn $(cat boardlist.json | jq ".boards[$INDEX].FQBN" | sed 's/\"//g') $PWD/extras/arduino-examples/examples/01.Basics/Blink; done
96-
97- # See: https://github.com/rtCamp/action-slack-notify
98- - name : Slack notification of core pre-release
99- uses : rtCamp/action-slack-notify@v2.1.0
100- env :
101- SLACK_CHANNEL : core_releases
102- SLACK_COLOR : good
103- SLACK_USERNAME : ArduinoBot
104- SLACK_ICON : https://github.com/arduino.png?size=48
105- SLACK_TITLE : Arduino core pre-release
106- SLACK_MESSAGE : ' Version ${{ env.TAG_VERSION }} of core ${{ env.REPOSITORY_NAME }} is now available'
107- SLACK_WEBHOOK : ${{ secrets.SLACK_WEBHOOK }}
108- MSG_MINIMAL : true
54+ path : ../*.json
0 commit comments