Skip to content

Commit

Permalink
XP32: added Github action to build firmware
Browse files Browse the repository at this point in the history
PIC32_with_bootloader : removed compilation outputs
Update build-firmware.yaml
  • Loading branch information
PBrunot committed Feb 25, 2024
1 parent b18fa72 commit 5f9920a
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 7,243 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build-firmware.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build Unisolder firmware
on: [push]

jobs:
build:
name: Build project
runs-on: ubuntu-latest
steps:
- name: Download source
uses: actions/checkout@v4
- name: Dump current directory
run: |
echo ${{ github.workspace }}
- name: Change directory
run: cd software/front
# Currently, only PIC32_with_bootloader is building on Linux
- name: Build PIC32_with_bootloader
uses: PBrunot/ghactions-mplabx@master
with:
project: software/front/US_Firmware.X
configuration: PIC32_with_bootloader
# Archive the build output
- name: Archive build output
uses: actions/upload-artifact@v2
with:
name: PIC32_with_bootloader
path: ${{ github.workspace }}/software/front/US_Firmware.X/dist/PIC32_with_bootloader/production
if-no-files-found: error
6 changes: 2 additions & 4 deletions .github/workflows/build-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ name: Windows Unisolder application

on:
push:
pull_request:
branches:
- master
- develop
tags:
- '*'

jobs:
build:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ software/front/US_Firmware.X/build/PIC32_with_bootloader/debug/
software/front/US_Firmware.X/dist/PIC32_with_bootloader/debug/
*.deploy
software/PC/UniSolder/publish/
software/front/US_Firmware.X/build/PIC32_NoOptimization/
software/front/US_Firmware.X/dist/PIC32_NoOptimization/
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Control almost any low voltage soldering instrument

[![Windows Unisolder application](https://github.com/PBrunot/UniSolder-5.2/actions/workflows/build-windows.yaml/badge.svg)](https://github.com/PBrunot/UniSolder-5.2/actions/workflows/build-windows.yaml)
[![Unisolder firmware](https://github.com/PBrunot/UniSolder-5.2/actions/workflows/build-firmware.yaml/badge.svg)](https://github.com/PBrunot/UniSolder-5.2/actions/workflows/build-firmware.yaml)

<img width=500 align="center" src="/img/UniSolder52_small.jpg"/>

Expand Down
4 changes: 4 additions & 0 deletions software/front/US_Firmware.X/build.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
REM set path=%path%;"C:\Program Files (x86)\Microchip\MPLABX\v4.20\gnuBins\GnuWin32\bin"
make -f nbproject/Makefile-PIC32_with_bootloader.mk SUBPROJECTS= .build-conf
make -f nbproject/Makefile-PIC32_Standalone.mk SUBPROJECTS= .build-conf
make -f nbproject/Makefile-PIC32_NoOptimization.mk SUBPROJECTS= .build-conf
Binary file not shown.
Loading

0 comments on commit 5f9920a

Please sign in to comment.