AyabAsync v1.1.3 #1708
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Archive Build | |
on: [push, pull_request] | |
env: | |
AYAB_VERSION: v1.1.2 | |
jobs: | |
archive: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Fetch binary from ayabAsync | |
env: | |
FIRMWARE_URL : "https://github.com/jpcornil-git/ayabAsync-firmware/releases/download/${{ env.AYAB_VERSION }}/firmware_uno_1_1_2.hex" | |
run: | | |
set -e | |
if ! wget --spider ${FIRMWARE_URL}; then | |
echo "Error: Firmware file not found at ${FIRMWARE_URL}" | |
exit 1 | |
fi | |
wget ${FIRMWARE_URL} | |
- name: Verify hex file presence | |
run: | | |
hex_files=( *.hex ) | |
if [ ${#hex_files[@]} -eq 0 ] || [ ! -f "${hex_files[0]}" ]; then | |
echo "Error: No hex files found in $(pwd)" | |
exit 1 | |
fi | |
- name: Archive build | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{format('{0}-{1}',github.sha,github.run_number)}} | |
path: ./*.hex |