Skip to content

Commit

Permalink
ci(GitHub): setup GCC problem matcher
Browse files Browse the repository at this point in the history
  • Loading branch information
leon0399 committed Aug 8, 2024
1 parent ac19530 commit 8a5f6c0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ jobs:
sed -i "s/len\s=\s0x2c200\s-\s0xdb5c/len = 2898880/" ~/.platformio/packages/framework-arduinoespressif32-libs/esp32/ld/memory.ld
sed -i "/\[env\]/p; s/\[env\]/board_build.partitions = huge_app.csv/" platformio.ini
- uses: ammaraskar/gcc-problem-matcher@0.3.0

- name: Build
shell: bash
run: |
Expand Down Expand Up @@ -255,6 +257,8 @@ jobs:
sed -i "s/len\s=\s0x2c200\s-\s0xdb5c/len = 2898880/" ~/.platformio/packages/framework-arduinoespressif32-libs/esp32/ld/memory.ld
sed -i "/\[env\]/p; s/\[env\]/board_build.partitions = huge_app.csv/" platformio.ini
- uses: ammaraskar/gcc-problem-matcher@0.3.0

- name: Build
shell: bash
run: |
Expand Down Expand Up @@ -362,6 +366,8 @@ jobs:
run: |
pio pkg install -e ${{matrix.target}}
- uses: ammaraskar/gcc-problem-matcher@0.3.0

- name: Run Unit Tests
run: pio test -e ${{matrix.target}}

Expand Down
2 changes: 2 additions & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ build_unflags =
-std=gnu++11
build_flags =
-std=gnu++17
-Wall
-Wextra
-D __OH_FIRMWARE__

build_src_filter =
Expand Down

0 comments on commit 8a5f6c0

Please sign in to comment.