Skip to content

Commit 83c473a

Browse files
committed
Add xc8 compile test
1 parent 8469f60 commit 83c473a

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: XC8 Compile Check
2+
3+
# Runs on pushes to pull request
4+
on: pull_request
5+
6+
jobs:
7+
xc8-compile-check:
8+
name: XC8 Compile Check
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout Repository
12+
uses: actions/checkout@v4
13+
with:
14+
submodules: 'true'
15+
- name: Install XC8
16+
run: |
17+
wget https://ww1.microchip.com/downloads/aemDocuments/documents/DEV/ProductDocuments/SoftwareTools/xc8-v3.10-full-install-linux-x64-installer.run
18+
chmod +x ./xc8-v3.10-full-install-linux-x64-installer.run
19+
sudo ./xc8-v3.10-full-install-linux-x64-installer.run --mode unattended --netservername localhost --debuglevel 4
20+
21+
- name: Download DFP
22+
run: |
23+
wget https://packs.download.microchip.com/Microchip.PIC18F-K_DFP.1.15.303.atpack
24+
unzip Microchip.PIC18F-K_DFP.1.15.303.atpack
25+
26+
- name: Run Compile
27+
run: |
28+
/opt/microchip/xc8/v3.10/bin/xc8-cc -mcpu=18F26K83 -mdfp=xc8 -Iinclude -c -mwarn=-9 -std=c99 -Wpedantic common/crc8.c common/low_pass_filter.c pic18f26k83/i2c.c pic18f26k83/pwm.c pic18f26k83/timer.c

0 commit comments

Comments
 (0)