Skip to content

Commit 5c1353c

Browse files
committed
Refresh CI workflow and unify build step
Updates the GitHub Actions C/C++ workflow to use newer action versions (`checkout@v4`, `setup-python@v5`) with Python 3.10, adds an explicit compiler version check, and replaces separate per-target make commands with a single `scripts/build_all.sh` invocation to centralize and simplify CI builds.
1 parent f4a7af6 commit 5c1353c

1 file changed

Lines changed: 11 additions & 12 deletions

File tree

.github/workflows/c-cpp.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,17 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v2
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
- name: Set up Python
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: '3.10'
1823
- name: Install arm-none-eabi
1924
run: sudo apt install gcc-arm-none-eabi
20-
- name: make gd32_dmx_usb_pro
25+
- name: version
26+
run: arm-none-eabi-g++ --version
27+
- name: build all
2128
run: |
22-
cd gd32_dmx_usb_pro
23-
make -f Makefile.GD32 clean
24-
make -f Makefile.GD32
25-
cd -
26-
- name: make gd32_rdm_responder
27-
run: |
28-
cd gd32_rdm_responder
29-
make -f Makefile.GD32 clean
30-
make -f Makefile.GD32
31-
cd -
29+
cd scripts
30+
./build_all.sh

0 commit comments

Comments
 (0)