Fix capacitor charge direction #398
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: pslab-firmware | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download project files | |
uses: actions/checkout@v3 | |
- name: Cache XC-16 Compiler | |
id: cache-compiler | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cache/mplab-xc | |
key: xc16-v2.10-cache | |
- name: Download XC16 Compiler | |
if: steps.cache-compiler.outputs.cache-hit != 'true' | |
run: | | |
mkdir -p ~/.cache/mplab-xc | |
cd ~/.cache/mplab-xc | |
wget https://ww1.microchip.com/downloads/aemDocuments/documents/DEV/ProductDocuments/SoftwareTools/xc16-v2.10-full-install-linux64-installer.run | |
chmod +x xc16-v2.10-full-install-linux64-installer.run | |
- name: Install XC16 Compiler | |
run: | | |
cd ~/.cache/mplab-xc | |
sudo ./xc16-v2.10-full-install-linux64-installer.run --mode unattended --netservername dontknow | |
- name: Set up cmake-microchip submodules | |
run: | | |
git submodule init | |
git submodule update | |
- name: Build firmware | |
run: | | |
mkdir build | |
cd build | |
cmake .. | |
make | |
- name: Publish build files | |
uses: actions/upload-artifact@v3 | |
with: | |
name: production-file | |
path: build/*.hex |