Skip to content

Commit c1faec8

Browse files
authored
Merge pull request #3 from maxgerhardt/main
Fix build on Linux, fix Intellisense, add PlatformIO CI
2 parents 847c88d + fe29eab commit c1faec8

File tree

4 files changed

+37
-2
lines changed

4 files changed

+37
-2
lines changed

.github/workflows/build.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: PlatformIO CI
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: actions/cache@v4
12+
with:
13+
path: |
14+
~/.cache/pip
15+
~/.platformio/.cache
16+
key: ${{ runner.os }}-pio
17+
- uses: actions/setup-python@v5
18+
with:
19+
python-version: '3.11'
20+
- name: Install PlatformIO Core
21+
run: pip install --upgrade platformio
22+
23+
- name: Install CH32V platform
24+
run: pio pkg install -g -p "https://github.com/Community-PIO-CH32V/platform-ch32v.git"
25+
26+
- name: Build CDCRenderer Firmware
27+
run: cd CDCRenderer && pio run
28+
29+
- name: Build ClusterRaymarcher Firmware
30+
run: cd ClusterRaymarcher && pio run
31+
32+
- name: Build ClusterRaymarcherBase Firmware
33+
run: cd ClusterRaymarcherBase && pio run

ClusterRaymarcher/src/ClientBus.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#pragma once
22
#include <stdint.h>
33
#include <ch32v00x.h>
4-
#include "Bus.h"
4+
#include "bus.h"
55

66
class ClientBus: public Bus
77
{

ClusterRaymarcher/src/adc.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#include <ch32v00x.h>
2+
13
void adcInit()
24
{
35
ADC_InitTypeDef ADC_InitStructure = {0};

ClusterRaymarcherBase/src/HostBus.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#pragma once
2-
#include "Bus.h"
2+
#include "bus.h"
33
#include "timer.h"
44
#include <stdint.h>
55

0 commit comments

Comments
 (0)