fork/GramFirmware
git clone https://git.julia.blue/fork/GramFirmware
0487bd6
v0.1.0
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 }} 12strategy : 13matrix : 14include : 15- env : c53 16bin_ext : uf2 17- env : pico 18bin_ext : uf2 19- env : arduino_uno 20bin_ext : hex 21- env : arduino_nano 22bin_ext : hex 23- env : arduino_mega 24bin_ext : hex 25- env : arduino_leonardo 26bin_ext : hex 27- env : arduino_micro 28bin_ext : hex 29- env : b0xx_r1 30bin_ext : hex 31- env : b0xx_r2 32bin_ext : hex 33- env : gccmx 34bin_ext : hex 35- env : gccpcb1 36bin_ext : hex 37- env : gccpcb2 38bin_ext : hex 39- env : lbx 40bin_ext : hex 41- env : smashbox 42bin_ext : hex 43 44steps : 45- name : Check out source code 46uses : actions/checkout@v3 47 48- name : Set up Python 49uses : actions/setup-python@v4 50with : 51python-version : '3.10' 52 53- name : Install PlatformIO 54run : | 55python -m pip install --upgrade pip 56pip install --upgrade platformio 57 58- name : Build ${{ matrix.env }} env 59run : | 60pio run -e ${{ matrix.env }} 61mkdir -p ${{ matrix.env }} 62cp .pio/build/${{ matrix.env }}/firmware.${{ matrix.bin_ext }} ${{ matrix.env }}/HayBox-${{ env.VERSION_REF }}-${{ matrix.env }}.${{ matrix.bin_ext }} 63 64- name : Publish ${{ matrix.env }} artifacts 65uses : actions/upload-artifact@v3 66with : 67name : HayBox-${{ env.VERSION_REF }}-${{ matrix.env }}.${{ matrix.bin_ext }} 68path : ${{ matrix.env }}/HayBox-${{ env.VERSION_REF }}-${{ matrix.env }}.${{ matrix.bin_ext }} 69 70- name : Upload binaries to release 71uses : softprops/action-gh-release@v1 72if : github.ref_type == 'tag' 73with : 74files : ${{ matrix.env }}/HayBox-${{ env.VERSION_REF }}-${{ matrix.env }}.${{ matrix.bin_ext }}