Skip to content

Fix example main.cpp in custom-project documentation. #773

Fix example main.cpp in custom-project documentation.

Fix example main.cpp in custom-project documentation. #773

Workflow file for this run

name: Compile HAL for all devices
on:
pull_request:
types: [labeled]
jobs:
avr-compile-all:
if: github.event.label.name == 'ci:hal'
runs-on: ubuntu-22.04
container:
image: ghcr.io/modm-ext/modm-build-avr:2023-03-12
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Fix Git permission/ownership problem
run: |
git config --global --add safe.directory /__w/modm/modm
- name: Update lbuild
run: |
pip3 install --upgrade --upgrade-strategy=eager modm
- name: Compile HAL for all AVRs
run: |
(cd test/all && python3 run_all.py at --quick-remaining)
- name: Upload log artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: avr-compile-all
path: test/all/log
sam-d0x-d1x-d2x-compile-all:
if: github.event.label.name == 'ci:hal'
runs-on: ubuntu-22.04
container:
image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Fix Git permission/ownership problem
run: |
git config --global --add safe.directory /__w/modm/modm
- name: Update lbuild
run: |
pip3 install --upgrade --upgrade-strategy=eager modm
- name: Compile HAL for SAMD0x, SAMD1x, SAMD2x
run: |
(cd test/all && python3 run_all.py samd0 samd1 samd2 --quick-remaining)
- name: Upload log artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: sam-compile-all
path: test/all/log
sam-x5x-compile-all:
if: github.event.label.name == 'ci:hal'
runs-on: ubuntu-22.04
container:
image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Fix Git permission/ownership problem
run: |
git config --global --add safe.directory /__w/modm/modm
- name: Update lbuild
run: |
pip3 install --upgrade --upgrade-strategy=eager modm
- name: Compile HAL for SAMD5x, SAME5x, SAMG5x
run: |
(cd test/all && python3 run_all.py samd5 same5 samg5 --quick-remaining)
- name: Upload log artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: sam-compile-all
path: test/all/log
sam-x7x-compile-all:
if: github.event.label.name == 'ci:hal'
runs-on: ubuntu-22.04
container:
image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Fix Git permission/ownership problem
run: |
git config --global --add safe.directory /__w/modm/modm
- name: Update lbuild
run: |
pip3 install --upgrade --upgrade-strategy=eager modm
- name: Compile HAL for SAME7x, SAMS7x, SAMV7x
run: |
(cd test/all && python3 run_all.py same7 sams7 samv7 --quick-remaining)
- name: Upload log artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: sam-compile-all
path: test/all/log
stm32f0-compile-all:
if: github.event.label.name == 'ci:hal'
runs-on: ubuntu-22.04
container:
image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Fix Git permission/ownership problem
run: |
git config --global --add safe.directory /__w/modm/modm
- name: Update lbuild
run: |
pip3 install --upgrade --upgrade-strategy=eager modm
- name: Compile HAL for all STM32F0
run: |
(cd test/all && python3 run_all.py stm32f0 --quick-remaining)
- name: Upload log artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: stm32f0-compile-all
path: test/all/log
stm32f1-compile-all:
if: github.event.label.name == 'ci:hal'
runs-on: ubuntu-22.04
container:
image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Fix Git permission/ownership problem
run: |
git config --global --add safe.directory /__w/modm/modm
- name: Update lbuild
run: |
pip3 install --upgrade --upgrade-strategy=eager modm
- name: Compile HAL for all STM32F1
run: |
(cd test/all && python3 run_all.py stm32f1 --quick-remaining)
- name: Upload log artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: stm32f1-compile-all
path: test/all/log
stm32f2-compile-all:
if: github.event.label.name == 'ci:hal'
runs-on: ubuntu-22.04
container:
image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Fix Git permission/ownership problem
run: |
git config --global --add safe.directory /__w/modm/modm
- name: Update lbuild
run: |
pip3 install --upgrade --upgrade-strategy=eager modm
- name: Compile HAL for all STM32F2
run: |
(cd test/all && python3 run_all.py stm32f2 --quick-remaining)
- name: Upload log artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: stm32f2-compile-all
path: test/all/log
stm32f3-compile-all:
if: github.event.label.name == 'ci:hal'
runs-on: ubuntu-22.04
container:
image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Fix Git permission/ownership problem
run: |
git config --global --add safe.directory /__w/modm/modm
- name: Update lbuild
run: |
pip3 install --upgrade --upgrade-strategy=eager modm
- name: Compile HAL for all STM32F3
run: |
(cd test/all && python3 run_all.py stm32f3 --quick-remaining)
- name: Upload log artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: stm32f3-compile-all
path: test/all/log
stm32f4-compile-all-1:
if: github.event.label.name == 'ci:hal'
runs-on: ubuntu-22.04
container:
image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Fix Git permission/ownership problem
run: |
git config --global --add safe.directory /__w/modm/modm
- name: Update lbuild
run: |
pip3 install --upgrade --upgrade-strategy=eager modm
- name: Compile HAL for all STM32F4 Part 1
run: |
(cd test/all && python3 run_all.py stm32f4 --quick-remaining --split 3 --part 0)
- name: Upload log artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: stm32f4-compile-all-1
path: test/all/log
stm32f4-compile-all-2:
if: github.event.label.name == 'ci:hal'
runs-on: ubuntu-22.04
container:
image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Fix Git permission/ownership problem
run: |
git config --global --add safe.directory /__w/modm/modm
- name: Update lbuild
run: |
pip3 install --upgrade --upgrade-strategy=eager modm
- name: Compile HAL for all STM32F4 Part 2
run: |
(cd test/all && python3 run_all.py stm32f4 --quick-remaining --split 3 --part 1)
- name: Upload log artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: stm32f4-compile-all-2
path: test/all/log
stm32f4-compile-all-3:
if: github.event.label.name == 'ci:hal'
runs-on: ubuntu-22.04
container:
image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Fix Git permission/ownership problem
run: |
git config --global --add safe.directory /__w/modm/modm
- name: Update lbuild
run: |
pip3 install --upgrade --upgrade-strategy=eager modm
- name: Compile HAL for all STM32F4 Part 3
run: |
(cd test/all && python3 run_all.py stm32f4 --quick-remaining --split 3 --part 2)
- name: Upload log artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: stm32f4-compile-all-3
path: test/all/log
stm32f7-compile-all-1:
if: github.event.label.name == 'ci:hal'
runs-on: ubuntu-22.04
container:
image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Fix Git permission/ownership problem
run: |
git config --global --add safe.directory /__w/modm/modm
- name: Update lbuild
run: |
pip3 install --upgrade --upgrade-strategy=eager modm
- name: Compile HAL for all STM32F7 Part 1
run: |
(cd test/all && python3 run_all.py stm32f7 --quick-remaining --split 2 --part 0)
- name: Upload log artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: stm32f7-compile-all-1
path: test/all/log
stm32f7-compile-all-2:
if: github.event.label.name == 'ci:hal'
runs-on: ubuntu-22.04
container:
image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Fix Git permission/ownership problem
run: |
git config --global --add safe.directory /__w/modm/modm
- name: Update lbuild
run: |
pip3 install --upgrade --upgrade-strategy=eager modm
- name: Compile HAL for all STM32F7 Part 2
run: |
(cd test/all && python3 run_all.py stm32f7 --quick-remaining --split 2 --part 1)
- name: Upload log artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: stm32f7-compile-all-2
path: test/all/log
stm32l0-compile-all-1:
if: github.event.label.name == 'ci:hal'
runs-on: ubuntu-22.04
container:
image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Fix Git permission/ownership problem
run: |
git config --global --add safe.directory /__w/modm/modm
- name: Update lbuild
run: |
pip3 install --upgrade --upgrade-strategy=eager modm
- name: Compile HAL for all STM32L0 Part 1
run: |
(cd test/all && python3 run_all.py stm32l0 --quick-remaining --split 2 --part 0)
- name: Upload log artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: stm32l0-compile-all-1
path: test/all/log
stm32l0-compile-all-2:
if: github.event.label.name == 'ci:hal'
runs-on: ubuntu-22.04
container:
image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Fix Git permission/ownership problem
run: |
git config --global --add safe.directory /__w/modm/modm
- name: Update lbuild
run: |
pip3 install --upgrade --upgrade-strategy=eager modm
- name: Compile HAL for all STM32L0 Part 2
run: |
(cd test/all && python3 run_all.py stm32l0 --quick-remaining --split 2 --part 1)
- name: Upload log artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: stm32l0-compile-all-2
path: test/all/log
stm32l1-compile-all:
if: github.event.label.name == 'ci:hal'
runs-on: ubuntu-22.04
container:
image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Fix Git permission/ownership problem
run: |
git config --global --add safe.directory /__w/modm/modm
- name: Update lbuild
run: |
pip3 install --upgrade --upgrade-strategy=eager modm
- name: Compile HAL for all STM32L1
run: |
(cd test/all && python3 run_all.py stm32l1 --quick-remaining)
- name: Upload log artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: stm32l1-compile-all
path: test/all/log
stm32l4-compile-all-1:
if: github.event.label.name == 'ci:hal'
runs-on: ubuntu-22.04
container:
image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Fix Git permission/ownership problem
run: |
git config --global --add safe.directory /__w/modm/modm
- name: Update lbuild
run: |
pip3 install --upgrade --upgrade-strategy=eager modm
- name: Compile HAL for all STM32L4 Part 1
run: |
(cd test/all && python3 run_all.py stm32l4 --quick-remaining --split 3 --part 0)
- name: Upload log artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: stm32l4-compile-all-1
path: test/all/log
stm32l4-compile-all-2:
if: github.event.label.name == 'ci:hal'
runs-on: ubuntu-22.04
container:
image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Fix Git permission/ownership problem
run: |
git config --global --add safe.directory /__w/modm/modm
- name: Update lbuild
run: |
pip3 install --upgrade --upgrade-strategy=eager modm
- name: Compile HAL for all STM32L4 Part 2
run: |
(cd test/all && python3 run_all.py stm32l4 --quick-remaining --split 3 --part 1)
- name: Upload log artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: stm32l4-compile-all-2
path: test/all/log
stm32l4-compile-all-3:
if: github.event.label.name == 'ci:hal'
runs-on: ubuntu-22.04
container:
image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Fix Git permission/ownership problem
run: |
git config --global --add safe.directory /__w/modm/modm
- name: Update lbuild
run: |
pip3 install --upgrade --upgrade-strategy=eager modm
- name: Compile HAL for all STM32L4 Part 3
run: |
(cd test/all && python3 run_all.py stm32l4 --quick-remaining --split 3 --part 2)
- name: Upload log artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: stm32l4-compile-all-3
path: test/all/log
stm32l5-compile-all:
if: github.event.label.name == 'ci:hal'
runs-on: ubuntu-22.04
container:
image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Fix Git permission/ownership problem
run: |
git config --global --add safe.directory /__w/modm/modm
- name: Update lbuild
run: |
pip3 install --upgrade --upgrade-strategy=eager modm
- name: Compile HAL for all STM32L5
run: |
(cd test/all && python3 run_all.py stm32l5 --quick-remaining)
- name: Upload log artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: stm32l5-compile-all
path: test/all/log
stm32u5-compile-all:
if: github.event.label.name == 'ci:hal'
runs-on: ubuntu-22.04
container:
image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Fix Git permission/ownership problem
run: |
git config --global --add safe.directory /__w/modm/modm
- name: Update lbuild
run: |
pip3 install --upgrade --upgrade-strategy=eager modm
- name: Compile HAL for all STM32U5
run: |
(cd test/all && python3 run_all.py stm32u5 --quick-remaining)
- name: Upload log artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: stm32u5-compile-all
path: test/all/log
stm32g0-compile-all-1:
if: github.event.label.name == 'ci:hal'
runs-on: ubuntu-22.04
container:
image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Fix Git permission/ownership problem
run: |
git config --global --add safe.directory /__w/modm/modm
- name: Update lbuild
run: |
pip3 install --upgrade --upgrade-strategy=eager modm
- name: Compile HAL for all STM32G0 Part 1
run: |
(cd test/all && python3 run_all.py stm32g0 --quick-remaining --split 2 --part 0)
- name: Upload log artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: stm32g0-compile-all-1
path: test/all/log
stm32g0-compile-all-2:
if: github.event.label.name == 'ci:hal'
runs-on: ubuntu-22.04
container:
image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Fix Git permission/ownership problem
run: |
git config --global --add safe.directory /__w/modm/modm
- name: Update lbuild
run: |
pip3 install --upgrade --upgrade-strategy=eager modm
- name: Compile HAL for all STM32G0 Part 2
run: |
(cd test/all && python3 run_all.py stm32g0 --quick-remaining --split 2 --part 1)
- name: Upload log artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: stm32g0-compile-all-2
path: test/all/log
stm32g4-compile-all-1:
if: github.event.label.name == 'ci:hal'
runs-on: ubuntu-22.04
container:
image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Fix Git permission/ownership problem
run: |
git config --global --add safe.directory /__w/modm/modm
- name: Update lbuild
run: |
pip3 install --upgrade --upgrade-strategy=eager modm
- name: Compile HAL for all STM32G4 Part 1
run: |
(cd test/all && python3 run_all.py stm32g4 --quick-remaining --split 2 --part 0)
- name: Upload log artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: stm32g4-compile-all-1
path: test/all/log
stm32g4-compile-all-2:
if: github.event.label.name == 'ci:hal'
runs-on: ubuntu-22.04
container:
image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Fix Git permission/ownership problem
run: |
git config --global --add safe.directory /__w/modm/modm
- name: Update lbuild
run: |
pip3 install --upgrade --upgrade-strategy=eager modm
- name: Compile HAL for all STM32G4 Part 2
run: |
(cd test/all && python3 run_all.py stm32g4 --quick-remaining --split 2 --part 1)
- name: Upload log artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: stm32g4-compile-all-2
path: test/all/log
stm32h7-compile-all-1:
if: github.event.label.name == 'ci:hal'
runs-on: ubuntu-22.04
container:
image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Fix Git permission/ownership problem
run: |
git config --global --add safe.directory /__w/modm/modm
- name: Update lbuild
run: |
pip3 install --upgrade --upgrade-strategy=eager modm
- name: Compile HAL for all STM32H7 Part 1
run: |
(cd test/all && python3 run_all.py stm32h7 --quick-remaining --split 2 --part 0)
- name: Upload log artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: stm32h7-compile-all-1
path: test/all/log
stm32h7-compile-all-2:
if: github.event.label.name == 'ci:hal'
runs-on: ubuntu-22.04
container:
image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Fix Git permission/ownership problem
run: |
git config --global --add safe.directory /__w/modm/modm
- name: Update lbuild
run: |
pip3 install --upgrade --upgrade-strategy=eager modm
- name: Compile HAL for all STM32H7 Part 2
run: |
(cd test/all && python3 run_all.py stm32h7 --quick-remaining --split 2 --part 1)
- name: Upload log artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: stm32h7-compile-all-2
path: test/all/log