fork/GramFirmware
git clone https://git.julia.blue/fork/GramFirmware
fb9ad76
gram
1name : PlatformIO CI 2 3on : [ push ] 4 5jobs : 6build : 7runs-on : ubuntu-latest 8permissions : 9contents : write 10env : 11VERSION_REF : ${{ github.ref_type == 'tag' && github.ref_name || github.sha }} 12PIO_ENV : ${{ matrix.env }} 13BIN_EXT : ${{ matrix.bin_ext }} 14strategy : 15fail-fast : false 16matrix : 17include : 18- env : b0xx_r4 19bin_ext : uf2 20- env : pico 21bin_ext : uf2 22- env : schism 23bin_ext : uf2 24- env : ranadigital 25bin_ext : uf2 26# - env: arduino_uno 27# bin_ext: hex 28# - env: arduino_nano 29# bin_ext: hex 30# - env: arduino_mega 31# bin_ext: hex 32# - env: arduino_leonardo 33# bin_ext: hex 34# - env: arduino_micro 35# bin_ext: hex 36# - env: b0xx_r1 37# bin_ext: hex 38# - env: b0xx_r2 39# bin_ext: hex 40# - env: gccmx 41# bin_ext: hex 42# - env: gccpcb1 43# bin_ext: hex 44# - env: gccpcb2 45# bin_ext: hex 46# - env: lbx 47# bin_ext: hex 48# - env: smashbox 49# bin_ext: hex 50 51steps : 52- name : Check out source code 53uses : actions/checkout@v4 54 55- name : Set up Python 56uses : actions/setup-python@v5 57with : 58python-version : '3.10' 59 60- name : Install PlatformIO 61run : | 62python -m pip install --upgrade pip 63pip install --upgrade platformio 64 65- name : Set artifact filename environment variable 66run : | 67echo "ARTIFACT_NAME=HayBox-${VERSION_REF}-${PIO_ENV}.${BIN_EXT}" >> "$GITHUB_ENV" 68 69- name : Set artifact path environment variable 70run : | 71echo "ARTIFACT_PATH=${PIO_ENV}/${ARTIFACT_NAME}" >> "$GITHUB_ENV" 72 73- name : Build ${{ matrix.env }} env 74run : | 75pio run -e "$PIO_ENV" 76mkdir -p "$PIO_ENV" 77cp ".pio/build/${PIO_ENV}/firmware.${BIN_EXT}" "$ARTIFACT_PATH" 78 79- name : Publish ${{ matrix.env }} artifacts 80uses : actions/upload-artifact@v4 81with : 82name : ${{ env.ARTIFACT_NAME }} 83path : ${{ env.ARTIFACT_PATH }} 84 85- name : Upload binaries to release 86uses : softprops/action-gh-release@v1 87if : github.ref_type == 'tag' 88with : 89files : ${{ env.ARTIFACT_PATH }}