-
Notifications
You must be signed in to change notification settings - Fork 9
52 lines (44 loc) · 1.54 KB
/
main-builder.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: pslab-bootloader
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Download project files
uses: actions/checkout@v2
- name: Cache XC-16 Compiler
id: cache-compiler
uses: actions/cache@v2
with:
path: ~/.cache/mplab-xc
key: xc16-v1.70-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/en/DeviceDoc/xc16-v1.70-full-install-linux64-installer.run
chmod +x xc16-v1.70-full-install-linux64-installer.run
- name: Install XC16 Compiler
run: |
cd ~/.cache/mplab-xc
sudo ./xc16-v1.70-full-install-linux64-installer.run --mode unattended --netservername dontknow
- name: Set up cmake-microchip submodules
run: |
git submodule init
git submodule update
- name: Build bootloader
run: |
mkdir build
cd build
cmake ..
make
- name: Publish build files
uses: actions/upload-artifact@v2
with:
name: production-file
path: build/pslab-bootloader.hex