Skip to content

Commit c4222a7

Browse files
committed
[ci] Split STM32G0 compile all job into two
1 parent c9e5227 commit c4222a7

File tree

1 file changed

+30
-4
lines changed

1 file changed

+30
-4
lines changed

.github/workflows/compile-all.yml

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ jobs:
552552
name: stm32u5-compile-all
553553
path: test/all/log
554554

555-
stm32g0-compile-all:
555+
stm32g0-compile-all-1:
556556
if: github.event.label.name == 'ci:hal'
557557
runs-on: ubuntu-22.04
558558
container:
@@ -568,14 +568,40 @@ jobs:
568568
- name: Update lbuild
569569
run: |
570570
pip3 install --upgrade --upgrade-strategy=eager modm
571-
- name: Compile HAL for all STM32G0
571+
- name: Compile HAL for all STM32G0 Part 1
572572
run: |
573-
(cd test/all && python3 run_all.py stm32g0 --quick-remaining)
573+
(cd test/all && python3 run_all.py stm32g0 --quick-remaining --split 2 --part 0)
574574
- name: Upload log artifacts
575575
if: always()
576576
uses: actions/upload-artifact@v3
577577
with:
578-
name: stm32g0-compile-all
578+
name: stm32g0-compile-all-1
579+
path: test/all/log
580+
581+
stm32g0-compile-all-2:
582+
if: github.event.label.name == 'ci:hal'
583+
runs-on: ubuntu-22.04
584+
container:
585+
image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12
586+
steps:
587+
- name: Check out repository
588+
uses: actions/checkout@v3
589+
with:
590+
submodules: 'recursive'
591+
- name: Fix Git permission/ownership problem
592+
run: |
593+
git config --global --add safe.directory /__w/modm/modm
594+
- name: Update lbuild
595+
run: |
596+
pip3 install --upgrade --upgrade-strategy=eager modm
597+
- name: Compile HAL for all STM32G0 Part 2
598+
run: |
599+
(cd test/all && python3 run_all.py stm32g0 --quick-remaining --split 2 --part 1)
600+
- name: Upload log artifacts
601+
if: always()
602+
uses: actions/upload-artifact@v3
603+
with:
604+
name: stm32g0-compile-all-2
579605
path: test/all/log
580606

581607
stm32g4-compile-all-1:

0 commit comments

Comments
 (0)