Skip to content

Commit 40329aa

Browse files
Merge pull request #5 from maxgerhardt/main
Compile all examples in CI and fix compilation
2 parents 82614d0 + 9253d5f commit 40329aa

3 files changed

Lines changed: 32 additions & 2 deletions

File tree

.github/workflows/build.yml

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

SOFTWARE/Demo-ADC-Buzzer/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ void calcDelay(uint32_t *delay) {
135135
}
136136

137137
int main(void) {
138-
NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);
138+
NVIC_PriorityGroupConfig(NVIC_PriorityGroup_1);
139139
SystemCoreClockUpdate();
140140

141141
// Disable GPIO Alternate Functions

SOFTWARE/PlatformIO/RVPC/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ void HardFault_Handler(void) __attribute__((interrupt("WCH-Interrupt-fast")));
77
#define BUZZER_DELAY_MS 1
88

99
int main(void) {
10-
NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);
10+
NVIC_PriorityGroupConfig(NVIC_PriorityGroup_1);
1111
SystemCoreClockUpdate();
1212

1313
Delay_Init();

0 commit comments

Comments
 (0)