Skip to content

Commit 28c8f63

Browse files
committed
Use shared build script in CI workflow
Modernizes the GitHub Actions workflow by upgrading to actions/checkout@v4, adding Python 3.10 setup, and printing the arm-none-eabi compiler version. It also replaces the two manual per-project make steps with a single `scripts/build_all.sh` run to centralize and simplify CI builds.
1 parent a5579d7 commit 28c8f63

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)