diff --git a/.github/workflows/compile-all.yml b/.github/workflows/compile-all.yml index b0538e2d97..d3bc00ab31 100644 --- a/.github/workflows/compile-all.yml +++ b/.github/workflows/compile-all.yml @@ -7,9 +7,9 @@ on: jobs: avr-compile-all: if: github.event.label.name == 'ci:hal' - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 container: - image: ghcr.io/modm-ext/modm-build-avr:2023-03-12 + image: ghcr.io/modm-ext/modm-build-avr:2024-12-01 steps: - name: Check out repository uses: actions/checkout@v4 @@ -20,7 +20,7 @@ jobs: git config --global --add safe.directory /__w/modm/modm - name: Update lbuild run: | - pip3 install --upgrade --upgrade-strategy=eager modm + pip3 install --upgrade --upgrade-strategy=eager --break-system-packages modm - name: Compile HAL for all AVRs run: | (cd test/all && python3 run_all.py at --quick-remaining) @@ -33,9 +33,9 @@ jobs: sam-d0x-d1x-d2x-compile-all: if: github.event.label.name == 'ci:hal' - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 container: - image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12 + image: ghcr.io/modm-ext/modm-build-cortex-m:2024-12-01 steps: - name: Check out repository uses: actions/checkout@v4 @@ -46,7 +46,7 @@ jobs: git config --global --add safe.directory /__w/modm/modm - name: Update lbuild run: | - pip3 install --upgrade --upgrade-strategy=eager modm + pip3 install --upgrade --upgrade-strategy=eager --break-system-packages modm - name: Compile HAL for SAMD0x, SAMD1x, SAMD2x run: | (cd test/all && python3 run_all.py samd0 samd1 samd2 --quick-remaining) @@ -59,9 +59,9 @@ jobs: sam-x5x-compile-all: if: github.event.label.name == 'ci:hal' - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 container: - image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12 + image: ghcr.io/modm-ext/modm-build-cortex-m:2024-12-01 steps: - name: Check out repository uses: actions/checkout@v4 @@ -72,7 +72,7 @@ jobs: git config --global --add safe.directory /__w/modm/modm - name: Update lbuild run: | - pip3 install --upgrade --upgrade-strategy=eager modm + pip3 install --upgrade --upgrade-strategy=eager --break-system-packages modm - name: Compile HAL for SAMD5x, SAME5x, SAMG5x run: | (cd test/all && python3 run_all.py samd5 same5 samg5 --quick-remaining) @@ -85,9 +85,9 @@ jobs: sam-x7x-compile-all: if: github.event.label.name == 'ci:hal' - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 container: - image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12 + image: ghcr.io/modm-ext/modm-build-cortex-m:2024-12-01 steps: - name: Check out repository uses: actions/checkout@v4 @@ -98,7 +98,7 @@ jobs: git config --global --add safe.directory /__w/modm/modm - name: Update lbuild run: | - pip3 install --upgrade --upgrade-strategy=eager modm + pip3 install --upgrade --upgrade-strategy=eager --break-system-packages modm - name: Compile HAL for SAME7x, SAMS7x, SAMV7x run: | (cd test/all && python3 run_all.py same7 sams7 samv7 --quick-remaining) @@ -111,9 +111,9 @@ jobs: stm32c0-compile-all: if: github.event.label.name == 'ci:hal' - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 container: - image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12 + image: ghcr.io/modm-ext/modm-build-cortex-m:2024-12-01 steps: - name: Check out repository uses: actions/checkout@v4 @@ -124,7 +124,7 @@ jobs: git config --global --add safe.directory /__w/modm/modm - name: Update lbuild run: | - pip3 install --upgrade --upgrade-strategy=eager modm + pip3 install --upgrade --upgrade-strategy=eager --break-system-packages modm - name: Compile HAL for all STM32C0 run: | (cd test/all && python3 run_all.py stm32c0 --quick-remaining) @@ -137,9 +137,9 @@ jobs: stm32f0-compile-all: if: github.event.label.name == 'ci:hal' - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 container: - image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12 + image: ghcr.io/modm-ext/modm-build-cortex-m:2024-12-01 steps: - name: Check out repository uses: actions/checkout@v4 @@ -150,7 +150,7 @@ jobs: git config --global --add safe.directory /__w/modm/modm - name: Update lbuild run: | - pip3 install --upgrade --upgrade-strategy=eager modm + pip3 install --upgrade --upgrade-strategy=eager --break-system-packages modm - name: Compile HAL for all STM32F0 run: | (cd test/all && python3 run_all.py stm32f0 --quick-remaining) @@ -163,9 +163,9 @@ jobs: stm32f1-compile-all: if: github.event.label.name == 'ci:hal' - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 container: - image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12 + image: ghcr.io/modm-ext/modm-build-cortex-m:2024-12-01 steps: - name: Check out repository uses: actions/checkout@v4 @@ -176,7 +176,7 @@ jobs: git config --global --add safe.directory /__w/modm/modm - name: Update lbuild run: | - pip3 install --upgrade --upgrade-strategy=eager modm + pip3 install --upgrade --upgrade-strategy=eager --break-system-packages modm - name: Compile HAL for all STM32F1 run: | (cd test/all && python3 run_all.py stm32f1 --quick-remaining) @@ -189,9 +189,9 @@ jobs: stm32f2-compile-all: if: github.event.label.name == 'ci:hal' - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 container: - image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12 + image: ghcr.io/modm-ext/modm-build-cortex-m:2024-12-01 steps: - name: Check out repository uses: actions/checkout@v4 @@ -202,7 +202,7 @@ jobs: git config --global --add safe.directory /__w/modm/modm - name: Update lbuild run: | - pip3 install --upgrade --upgrade-strategy=eager modm + pip3 install --upgrade --upgrade-strategy=eager --break-system-packages modm - name: Compile HAL for all STM32F2 run: | (cd test/all && python3 run_all.py stm32f2 --quick-remaining) @@ -215,9 +215,9 @@ jobs: stm32f3-compile-all: if: github.event.label.name == 'ci:hal' - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 container: - image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12 + image: ghcr.io/modm-ext/modm-build-cortex-m:2024-12-01 steps: - name: Check out repository uses: actions/checkout@v4 @@ -228,7 +228,7 @@ jobs: git config --global --add safe.directory /__w/modm/modm - name: Update lbuild run: | - pip3 install --upgrade --upgrade-strategy=eager modm + pip3 install --upgrade --upgrade-strategy=eager --break-system-packages modm - name: Compile HAL for all STM32F3 run: | (cd test/all && python3 run_all.py stm32f3 --quick-remaining) @@ -241,9 +241,9 @@ jobs: stm32f4-compile-all-1: if: github.event.label.name == 'ci:hal' - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 container: - image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12 + image: ghcr.io/modm-ext/modm-build-cortex-m:2024-12-01 steps: - name: Check out repository uses: actions/checkout@v4 @@ -254,7 +254,7 @@ jobs: git config --global --add safe.directory /__w/modm/modm - name: Update lbuild run: | - pip3 install --upgrade --upgrade-strategy=eager modm + pip3 install --upgrade --upgrade-strategy=eager --break-system-packages modm - name: Compile HAL for all STM32F4 Part 1 run: | (cd test/all && python3 run_all.py stm32f4 --quick-remaining --split 3 --part 0) @@ -267,9 +267,9 @@ jobs: stm32f4-compile-all-2: if: github.event.label.name == 'ci:hal' - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 container: - image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12 + image: ghcr.io/modm-ext/modm-build-cortex-m:2024-12-01 steps: - name: Check out repository uses: actions/checkout@v4 @@ -280,7 +280,7 @@ jobs: git config --global --add safe.directory /__w/modm/modm - name: Update lbuild run: | - pip3 install --upgrade --upgrade-strategy=eager modm + pip3 install --upgrade --upgrade-strategy=eager --break-system-packages modm - name: Compile HAL for all STM32F4 Part 2 run: | (cd test/all && python3 run_all.py stm32f4 --quick-remaining --split 3 --part 1) @@ -293,9 +293,9 @@ jobs: stm32f4-compile-all-3: if: github.event.label.name == 'ci:hal' - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 container: - image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12 + image: ghcr.io/modm-ext/modm-build-cortex-m:2024-12-01 steps: - name: Check out repository uses: actions/checkout@v4 @@ -306,7 +306,7 @@ jobs: git config --global --add safe.directory /__w/modm/modm - name: Update lbuild run: | - pip3 install --upgrade --upgrade-strategy=eager modm + pip3 install --upgrade --upgrade-strategy=eager --break-system-packages modm - name: Compile HAL for all STM32F4 Part 3 run: | (cd test/all && python3 run_all.py stm32f4 --quick-remaining --split 3 --part 2) @@ -319,9 +319,9 @@ jobs: stm32f7-compile-all-1: if: github.event.label.name == 'ci:hal' - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 container: - image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12 + image: ghcr.io/modm-ext/modm-build-cortex-m:2024-12-01 steps: - name: Check out repository uses: actions/checkout@v4 @@ -332,7 +332,7 @@ jobs: git config --global --add safe.directory /__w/modm/modm - name: Update lbuild run: | - pip3 install --upgrade --upgrade-strategy=eager modm + pip3 install --upgrade --upgrade-strategy=eager --break-system-packages modm - name: Compile HAL for all STM32F7 Part 1 run: | (cd test/all && python3 run_all.py stm32f7 --quick-remaining --split 2 --part 0) @@ -345,9 +345,9 @@ jobs: stm32f7-compile-all-2: if: github.event.label.name == 'ci:hal' - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 container: - image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12 + image: ghcr.io/modm-ext/modm-build-cortex-m:2024-12-01 steps: - name: Check out repository uses: actions/checkout@v4 @@ -358,7 +358,7 @@ jobs: git config --global --add safe.directory /__w/modm/modm - name: Update lbuild run: | - pip3 install --upgrade --upgrade-strategy=eager modm + pip3 install --upgrade --upgrade-strategy=eager --break-system-packages modm - name: Compile HAL for all STM32F7 Part 2 run: | (cd test/all && python3 run_all.py stm32f7 --quick-remaining --split 2 --part 1) @@ -371,9 +371,9 @@ jobs: stm32l0-compile-all-1: if: github.event.label.name == 'ci:hal' - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 container: - image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12 + image: ghcr.io/modm-ext/modm-build-cortex-m:2024-12-01 steps: - name: Check out repository uses: actions/checkout@v4 @@ -384,7 +384,7 @@ jobs: git config --global --add safe.directory /__w/modm/modm - name: Update lbuild run: | - pip3 install --upgrade --upgrade-strategy=eager modm + pip3 install --upgrade --upgrade-strategy=eager --break-system-packages modm - name: Compile HAL for all STM32L0 Part 1 run: | (cd test/all && python3 run_all.py stm32l0 --quick-remaining --split 2 --part 0) @@ -397,9 +397,9 @@ jobs: stm32l0-compile-all-2: if: github.event.label.name == 'ci:hal' - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 container: - image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12 + image: ghcr.io/modm-ext/modm-build-cortex-m:2024-12-01 steps: - name: Check out repository uses: actions/checkout@v4 @@ -410,7 +410,7 @@ jobs: git config --global --add safe.directory /__w/modm/modm - name: Update lbuild run: | - pip3 install --upgrade --upgrade-strategy=eager modm + pip3 install --upgrade --upgrade-strategy=eager --break-system-packages modm - name: Compile HAL for all STM32L0 Part 2 run: | (cd test/all && python3 run_all.py stm32l0 --quick-remaining --split 2 --part 1) @@ -424,9 +424,9 @@ jobs: stm32l1-compile-all: if: github.event.label.name == 'ci:hal' - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 container: - image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12 + image: ghcr.io/modm-ext/modm-build-cortex-m:2024-12-01 steps: - name: Check out repository uses: actions/checkout@v4 @@ -437,7 +437,7 @@ jobs: git config --global --add safe.directory /__w/modm/modm - name: Update lbuild run: | - pip3 install --upgrade --upgrade-strategy=eager modm + pip3 install --upgrade --upgrade-strategy=eager --break-system-packages modm - name: Compile HAL for all STM32L1 run: | (cd test/all && python3 run_all.py stm32l1 --quick-remaining) @@ -450,9 +450,9 @@ jobs: stm32l4-compile-all-1: if: github.event.label.name == 'ci:hal' - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 container: - image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12 + image: ghcr.io/modm-ext/modm-build-cortex-m:2024-12-01 steps: - name: Check out repository uses: actions/checkout@v4 @@ -463,7 +463,7 @@ jobs: git config --global --add safe.directory /__w/modm/modm - name: Update lbuild run: | - pip3 install --upgrade --upgrade-strategy=eager modm + pip3 install --upgrade --upgrade-strategy=eager --break-system-packages modm - name: Compile HAL for all STM32L4 Part 1 run: | (cd test/all && python3 run_all.py stm32l4 --quick-remaining --split 3 --part 0) @@ -476,9 +476,9 @@ jobs: stm32l4-compile-all-2: if: github.event.label.name == 'ci:hal' - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 container: - image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12 + image: ghcr.io/modm-ext/modm-build-cortex-m:2024-12-01 steps: - name: Check out repository uses: actions/checkout@v4 @@ -489,7 +489,7 @@ jobs: git config --global --add safe.directory /__w/modm/modm - name: Update lbuild run: | - pip3 install --upgrade --upgrade-strategy=eager modm + pip3 install --upgrade --upgrade-strategy=eager --break-system-packages modm - name: Compile HAL for all STM32L4 Part 2 run: | (cd test/all && python3 run_all.py stm32l4 --quick-remaining --split 3 --part 1) @@ -502,9 +502,9 @@ jobs: stm32l4-compile-all-3: if: github.event.label.name == 'ci:hal' - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 container: - image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12 + image: ghcr.io/modm-ext/modm-build-cortex-m:2024-12-01 steps: - name: Check out repository uses: actions/checkout@v4 @@ -515,7 +515,7 @@ jobs: git config --global --add safe.directory /__w/modm/modm - name: Update lbuild run: | - pip3 install --upgrade --upgrade-strategy=eager modm + pip3 install --upgrade --upgrade-strategy=eager --break-system-packages modm - name: Compile HAL for all STM32L4 Part 3 run: | (cd test/all && python3 run_all.py stm32l4 --quick-remaining --split 3 --part 2) @@ -528,9 +528,9 @@ jobs: stm32l5-compile-all: if: github.event.label.name == 'ci:hal' - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 container: - image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12 + image: ghcr.io/modm-ext/modm-build-cortex-m:2024-12-01 steps: - name: Check out repository uses: actions/checkout@v4 @@ -541,7 +541,7 @@ jobs: git config --global --add safe.directory /__w/modm/modm - name: Update lbuild run: | - pip3 install --upgrade --upgrade-strategy=eager modm + pip3 install --upgrade --upgrade-strategy=eager --break-system-packages modm - name: Compile HAL for all STM32L5 run: | (cd test/all && python3 run_all.py stm32l5 --quick-remaining) @@ -554,9 +554,9 @@ jobs: stm32u5-compile-all: if: github.event.label.name == 'ci:hal' - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 container: - image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12 + image: ghcr.io/modm-ext/modm-build-cortex-m:2024-12-01 steps: - name: Check out repository uses: actions/checkout@v4 @@ -567,7 +567,7 @@ jobs: git config --global --add safe.directory /__w/modm/modm - name: Update lbuild run: | - pip3 install --upgrade --upgrade-strategy=eager modm + pip3 install --upgrade --upgrade-strategy=eager --break-system-packages modm - name: Compile HAL for all STM32U5 run: | (cd test/all && python3 run_all.py stm32u5 --quick-remaining) @@ -580,9 +580,9 @@ jobs: stm32g0-compile-all-1: if: github.event.label.name == 'ci:hal' - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 container: - image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12 + image: ghcr.io/modm-ext/modm-build-cortex-m:2024-12-01 steps: - name: Check out repository uses: actions/checkout@v4 @@ -593,7 +593,7 @@ jobs: git config --global --add safe.directory /__w/modm/modm - name: Update lbuild run: | - pip3 install --upgrade --upgrade-strategy=eager modm + pip3 install --upgrade --upgrade-strategy=eager --break-system-packages modm - name: Compile HAL for all STM32G0 Part 1 run: | (cd test/all && python3 run_all.py stm32g0 --quick-remaining --split 2 --part 0) @@ -606,9 +606,9 @@ jobs: stm32g0-compile-all-2: if: github.event.label.name == 'ci:hal' - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 container: - image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12 + image: ghcr.io/modm-ext/modm-build-cortex-m:2024-12-01 steps: - name: Check out repository uses: actions/checkout@v4 @@ -619,7 +619,7 @@ jobs: git config --global --add safe.directory /__w/modm/modm - name: Update lbuild run: | - pip3 install --upgrade --upgrade-strategy=eager modm + pip3 install --upgrade --upgrade-strategy=eager --break-system-packages modm - name: Compile HAL for all STM32G0 Part 2 run: | (cd test/all && python3 run_all.py stm32g0 --quick-remaining --split 2 --part 1) @@ -632,9 +632,9 @@ jobs: stm32g4-compile-all-1: if: github.event.label.name == 'ci:hal' - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 container: - image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12 + image: ghcr.io/modm-ext/modm-build-cortex-m:2024-12-01 steps: - name: Check out repository uses: actions/checkout@v4 @@ -645,7 +645,7 @@ jobs: git config --global --add safe.directory /__w/modm/modm - name: Update lbuild run: | - pip3 install --upgrade --upgrade-strategy=eager modm + pip3 install --upgrade --upgrade-strategy=eager --break-system-packages modm - name: Compile HAL for all STM32G4 Part 1 run: | (cd test/all && python3 run_all.py stm32g4 --quick-remaining --split 2 --part 0) @@ -658,9 +658,9 @@ jobs: stm32g4-compile-all-2: if: github.event.label.name == 'ci:hal' - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 container: - image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12 + image: ghcr.io/modm-ext/modm-build-cortex-m:2024-12-01 steps: - name: Check out repository uses: actions/checkout@v4 @@ -671,7 +671,7 @@ jobs: git config --global --add safe.directory /__w/modm/modm - name: Update lbuild run: | - pip3 install --upgrade --upgrade-strategy=eager modm + pip3 install --upgrade --upgrade-strategy=eager --break-system-packages modm - name: Compile HAL for all STM32G4 Part 2 run: | (cd test/all && python3 run_all.py stm32g4 --quick-remaining --split 2 --part 1) @@ -684,9 +684,9 @@ jobs: stm32h7-compile-all-1: if: github.event.label.name == 'ci:hal' - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 container: - image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12 + image: ghcr.io/modm-ext/modm-build-cortex-m:2024-12-01 steps: - name: Check out repository uses: actions/checkout@v4 @@ -697,7 +697,7 @@ jobs: git config --global --add safe.directory /__w/modm/modm - name: Update lbuild run: | - pip3 install --upgrade --upgrade-strategy=eager modm + pip3 install --upgrade --upgrade-strategy=eager --break-system-packages modm - name: Compile HAL for all STM32H7 Part 1 run: | (cd test/all && python3 run_all.py stm32h7 --quick-remaining --split 2 --part 0) @@ -710,9 +710,9 @@ jobs: stm32h7-compile-all-2: if: github.event.label.name == 'ci:hal' - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 container: - image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12 + image: ghcr.io/modm-ext/modm-build-cortex-m:2024-12-01 steps: - name: Check out repository uses: actions/checkout@v4 @@ -723,7 +723,7 @@ jobs: git config --global --add safe.directory /__w/modm/modm - name: Update lbuild run: | - pip3 install --upgrade --upgrade-strategy=eager modm + pip3 install --upgrade --upgrade-strategy=eager --break-system-packages modm - name: Compile HAL for all STM32H7 Part 2 run: | (cd test/all && python3 run_all.py stm32h7 --quick-remaining --split 2 --part 1) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index d6c1ed0e45..98f274f425 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -8,9 +8,9 @@ on: jobs: build-upload-docs: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 container: - image: ghcr.io/modm-ext/modm-build-base:2023-03-12 + image: ghcr.io/modm-ext/modm-build-base:2024-12-01 steps: - name: Check out repository uses: actions/checkout@v4 @@ -21,7 +21,7 @@ jobs: git config --global --add safe.directory /__w/modm/modm - name: Update lbuild run: | - pip3 install --upgrade --upgrade-strategy=eager modm + pip3 install --upgrade --upgrade-strategy=eager --break-system-packages modm - name: Mkdocs info run: | mkdocs --version @@ -49,9 +49,9 @@ jobs: # Niklas: Running on the old container until I can figure out why the doc generator hangs api-docs-all: - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 container: - image: ghcr.io/modm-ext/modm-build-base:2022-09-27 + image: ghcr.io/modm-ext/modm-build-base:2024-12-01 steps: - name: Check out repository uses: actions/checkout@v4 @@ -62,7 +62,7 @@ jobs: git config --global --add safe.directory /__w/modm/modm - name: Update lbuild run: | - pip3 install --upgrade --upgrade-strategy=eager modm + pip3 install --upgrade --upgrade-strategy=eager --break-system-packages modm - name: Full run of docs.modm.io-generator-script run: | export TERM=xterm-256color diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 257023edfb..48895341e1 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -4,9 +4,9 @@ on: [pull_request] jobs: unittests-linux-generic: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 container: - image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12 + image: ghcr.io/modm-ext/modm-build-cortex-m:2024-12-01 steps: - name: Check out repository @@ -18,7 +18,7 @@ jobs: git config --global --add safe.directory /__w/modm/modm - name: Update lbuild run: | - pip3 install --upgrade --upgrade-strategy=eager modm + pip3 install --upgrade --upgrade-strategy=eager --break-system-packages modm - name: Check environment run: | env @@ -121,9 +121,9 @@ jobs: python3 tools/font_creator/font_export.py tools/font_creator/fonts/all_caps_3x5.font /tmp/all_caps_converted stm32-examples: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 container: - image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12 + image: ghcr.io/modm-ext/modm-build-cortex-m:2024-12-01 steps: - name: Check out repository uses: actions/checkout@v4 @@ -134,7 +134,7 @@ jobs: git config --global --add safe.directory /__w/modm/modm - name: Update lbuild run: | - pip3 install --upgrade --upgrade-strategy=eager modm + pip3 install --upgrade --upgrade-strategy=eager --break-system-packages modm - name: Examples STM32C0 Series if: always() run: | @@ -189,9 +189,9 @@ jobs: (cd examples && ../tools/scripts/examples_compile.py nucleo_h743zi nucleo_h723zg stm32h750vbt6_devebox) stm32f4-examples-1: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 container: - image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12 + image: ghcr.io/modm-ext/modm-build-cortex-m:2024-12-01 steps: - name: Check out repository uses: actions/checkout@v4 @@ -202,16 +202,16 @@ jobs: git config --global --add safe.directory /__w/modm/modm - name: Update lbuild run: | - pip3 install --upgrade --upgrade-strategy=eager modm + pip3 install --upgrade --upgrade-strategy=eager --break-system-packages modm - name: Examples STM32F4 Only Discovery Board if: always() run: | (cd examples && ../tools/scripts/examples_compile.py stm32f4_discovery stm32f429_discovery stm32f469_discovery stm32f401_discovery) stm32f4-examples-2: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 container: - image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12 + image: ghcr.io/modm-ext/modm-build-cortex-m:2024-12-01 steps: - name: Check out repository uses: actions/checkout@v4 @@ -222,19 +222,19 @@ jobs: git config --global --add safe.directory /__w/modm/modm - name: Update lbuild run: | - pip3 install --upgrade --upgrade-strategy=eager modm + pip3 install --upgrade --upgrade-strategy=eager --break-system-packages modm - name: Install protobuf==3.20.1 grpcio-tools (pip) run: | - pip3 install --upgrade --upgrade-strategy=eager protobuf==3.20.1 grpcio-tools + pip3 install --upgrade --upgrade-strategy=eager --break-system-packages protobuf grpcio-tools - name: Examples STM32F4 Without Discovery Board if: always() run: | (cd examples && ../tools/scripts/examples_compile.py nucleo_f401re nucleo_f411re nucleo_f429zi nucleo_f446re nucleo_f446ze nucleo_f439zi black_pill_f401 black_pill_f411 stm32f407vet6_devebox stm32_f4ve) avr-examples: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 container: - image: ghcr.io/modm-ext/modm-build-avr:2023-03-12 + image: ghcr.io/modm-ext/modm-build-avr:2024-12-01 steps: - name: Check out repository uses: actions/checkout@v4 @@ -245,8 +245,9 @@ jobs: git config --global --add safe.directory /__w/modm/modm - name: Update lbuild run: | - pip3 install --upgrade --upgrade-strategy=eager modm + pip3 install --upgrade --upgrade-strategy=eager --break-system-packages modm - name: Check environment + if: always() run: | which avr-g++ avr-g++ --version @@ -272,15 +273,16 @@ jobs: run: | (cd test/all && python3 run_all.py at --quick) - name: Upload log artifacts + if: always() uses: actions/upload-artifact@v4 with: name: hal-compile-quick-avr path: test/all/log hal-compile-quick-1: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 container: - image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12 + image: ghcr.io/modm-ext/modm-build-cortex-m:2024-12-01 steps: - name: Check out repository uses: actions/checkout@v4 @@ -291,7 +293,7 @@ jobs: git config --global --add safe.directory /__w/modm/modm - name: Update lbuild run: | - pip3 install --upgrade --upgrade-strategy=eager modm + pip3 install --upgrade --upgrade-strategy=eager --break-system-packages modm - name: Quick compile HAL for Cortex-M Part 1 if: always() run: | @@ -303,9 +305,9 @@ jobs: path: test/all/log hal-compile-quick-2: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 container: - image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12 + image: ghcr.io/modm-ext/modm-build-cortex-m:2024-12-01 steps: - name: Check out repository uses: actions/checkout@v4 @@ -316,7 +318,7 @@ jobs: git config --global --add safe.directory /__w/modm/modm - name: Update lbuild run: | - pip3 install --upgrade --upgrade-strategy=eager modm + pip3 install --upgrade --upgrade-strategy=eager --break-system-packages modm - name: Quick compile HAL for Cortex-M Part 2 if: always() run: | @@ -328,9 +330,9 @@ jobs: path: test/all/log hal-compile-quick-3: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 container: - image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12 + image: ghcr.io/modm-ext/modm-build-cortex-m:2024-12-01 steps: - name: Check out repository uses: actions/checkout@v4 @@ -341,7 +343,7 @@ jobs: git config --global --add safe.directory /__w/modm/modm - name: Update lbuild run: | - pip3 install --upgrade --upgrade-strategy=eager modm + pip3 install --upgrade --upgrade-strategy=eager --break-system-packages modm - name: Quick compile HAL for Cortex-M Part 3 if: always() run: | @@ -353,9 +355,9 @@ jobs: path: test/all/log hal-compile-quick-4: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 container: - image: ghcr.io/modm-ext/modm-build-cortex-m:2023-03-12 + image: ghcr.io/modm-ext/modm-build-cortex-m:2024-12-01 steps: - name: Check out repository uses: actions/checkout@v4 @@ -366,7 +368,7 @@ jobs: git config --global --add safe.directory /__w/modm/modm - name: Update lbuild run: | - pip3 install --upgrade --upgrade-strategy=eager modm + pip3 install --upgrade --upgrade-strategy=eager --break-system-packages modm - name: Quick compile HAL for Cortex-M Part 4 if: always() run: | @@ -379,10 +381,10 @@ jobs: # Niklas: Running on the old container until I can figure out why the doc generator hangs build-docs-test: - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 timeout-minutes: 30 container: - image: ghcr.io/modm-ext/modm-build-base:2022-09-27 + image: ghcr.io/modm-ext/modm-build-base:2024-12-01 steps: - name: Check out repository uses: actions/checkout@v4 @@ -393,10 +395,10 @@ jobs: git config --global --add safe.directory /__w/modm/modm - name: Update lbuild run: | - pip3 install --upgrade --upgrade-strategy=eager modm + pip3 install --upgrade --upgrade-strategy=eager --break-system-packages modm - name: Install mkdocs mkdocs-material (pip) run: | - pip3 install --upgrade --upgrade-strategy=eager mkdocs mkdocs-material + pip3 install --upgrade --upgrade-strategy=eager --break-system-packages mkdocs mkdocs-material mkdocs --version pip3 show mkdocs-material - name: Test run of docs.modm.io-generator-script diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index ae178db032..56964c15e4 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -13,7 +13,7 @@ jobs: - name: Setup environment - Brew tap run: | - brew tap modm-ext/arm + brew tap osx-cross/arm brew tap osx-cross/avr - name: Setup environment - Brew install @@ -21,19 +21,19 @@ jobs: export HOMEBREW_NO_INSTALL_CLEANUP=1 # saves time brew update # brew unlink gcc - brew install doxygen boost gcc@12 avr-gcc@12 arm-gcc-bin@12 cmake || true - brew link --force avr-gcc@12 + brew install doxygen boost gcc@13 avr-gcc@13 arm-gcc-bin@13 cmake || true + brew link --force avr-gcc@13 arm-gcc-bin@13 # brew upgrade boost gcc git || true - uses: actions/setup-python@v5 with: - python-version: '3.11' + python-version: '3.12' - name: Setup environment - Python pip run: | pip3 install --user modm scons echo "/usr/local/bin" >> $GITHUB_PATH - echo "/Users/runner/Library/Python/3.11/bin" >> $GITHUB_PATH + echo "/Users/runner/Library/Python/3.12/bin" >> $GITHUB_PATH - name: Dump environment run: | diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index f5795822a4..4229a639bf 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -43,18 +43,18 @@ jobs: Start-Job { Set-Location $using:PWD Add-Type -Assembly "System.IO.Compression.Filesystem" - Invoke-WebRequest -OutFile gcc-win64.zip https://github.com/brechtsanders/winlibs_mingw/releases/download/12.2.0-15.0.6-10.0.0-msvcrt-r3/winlibs-x86_64-posix-seh-gcc-12.2.0-mingw-w64msvcrt-10.0.0-r3.zip + Invoke-WebRequest -OutFile gcc-win64.zip https://github.com/brechtsanders/winlibs_mingw/releases/download/13.2.0posix-18.1.5-11.0.1-msvcrt-r8/winlibs-x86_64-posix-seh-gcc-13.2.0-mingw-w64msvcrt-11.0.1-r8.zip [System.IO.Compression.ZipFile]::ExtractToDirectory("gcc-win64.zip", "C:\") } Start-Job { Set-Location $using:PWD - Invoke-WebRequest -OutFile gcc-arm-none-eabi-win64.zip https://developer.arm.com/-/media/Files/downloads/gnu/12.2.rel1/binrel/arm-gnu-toolchain-12.2.rel1-mingw-w64-i686-arm-none-eabi.zip + Invoke-WebRequest -OutFile gcc-arm-none-eabi-win64.zip https://developer.arm.com/-/media/Files/downloads/gnu/13.2.rel1/binrel/arm-gnu-toolchain-13.2.rel1-mingw-w64-i686-arm-none-eabi.zip Expand-Archive -Path gcc-arm-none-eabi-win64.zip -DestinationPath C:\ -Force } Start-Job { Set-Location $using:PWD Add-Type -Assembly "System.IO.Compression.Filesystem" - Invoke-WebRequest -OutFile gcc-avr-win64.zip https://github.com/ZakKemble/avr-gcc-build/releases/download/v12.1.0-1/avr-gcc-12.1.0-x64-windows.zip + Invoke-WebRequest -OutFile gcc-avr-win64.zip https://github.com/ZakKemble/avr-gcc-build/releases/download/v13.2.0-1/avr-gcc-13.2.0-x64-windows.zip [System.IO.Compression.ZipFile]::ExtractToDirectory("gcc-avr-win64.zip", "C:\") } Get-Job | Wait-Job @@ -65,11 +65,11 @@ jobs: run: | dir C:\ dir C:\mingw64 - dir C:\arm-gnu-toolchain-12.2.rel1-mingw-w64-i686-arm-none-eabi - dir C:\avr-gcc-12.1.0-x64-windows + dir C:\arm-gnu-toolchain-13.2.rel1-mingw-w64-i686-arm-none-eabi + dir C:\avr-gcc-13.2.0-x64-windows echo "C:\mingw64\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append - echo "C:\arm-gnu-toolchain-12.2.rel1-mingw-w64-i686-arm-none-eabi\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append - echo "C:\avr-gcc-12.1.0-x64-windows\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append + echo "C:\arm-gnu-toolchain-13.2.rel1-mingw-w64-i686-arm-none-eabi\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append + echo "C:\avr-gcc-13.2.0-x64-windows\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append rm gcc-arm-none-eabi-win64.zip - name: Install Python diff --git a/ext/gcc/cabi_cortex.c b/ext/gcc/cabi_cortex.c index 7fed80a42b..dd297f2a37 100644 --- a/ext/gcc/cabi_cortex.c +++ b/ext/gcc/cabi_cortex.c @@ -95,3 +95,10 @@ modm_weak int _gettimeofday(void *tp, void *tzp) (void) tzp; return -1; } + +modm_weak int _getentropy(void *buffer, size_t length) +{ + (void) buffer; + (void) length; + return -1; +} diff --git a/ext/lvgl/lvgl.lb b/ext/lvgl/lvgl.lb index 21388e1e36..977414c159 100644 --- a/ext/lvgl/lvgl.lb +++ b/ext/lvgl/lvgl.lb @@ -85,6 +85,7 @@ def build(env): env.copy("lvgl/lvgl.h") env.copy("lvgl/lv_version.h") env.template("lv_conf.h.in") - env.copy("lvgl/src") + files = env.copy("lvgl/src") + env.collect(":build:ccflags", "-Wno-maybe-uninitialized", operations=files) env.substitutions = {"has_debug": env.has_module(":debug")} env.template("lv_modm_port.cpp.in") diff --git a/src/modm/driver/display/st7789/st7789_driver_impl.hpp b/src/modm/driver/display/st7789/st7789_driver_impl.hpp index 19405c9b3a..caa6a3a3d6 100644 --- a/src/modm/driver/display/st7789/st7789_driver_impl.hpp +++ b/src/modm/driver/display/st7789/st7789_driver_impl.hpp @@ -17,6 +17,7 @@ namespace modm { template + requires(Width <= detail::st7789::MaxWidth && Height <= detail::st7789::MaxHeight) void St7789Driver::initialize() { @@ -45,6 +46,7 @@ St7789Driver::initialize() } template + requires(Width <= detail::st7789::MaxWidth && Height <= detail::st7789::MaxHeight) void St7789Driver::clear(uint16_t color) { @@ -62,6 +64,7 @@ St7789Driver::clear(uint16_t color) } template + requires(Width <= detail::st7789::MaxWidth && Height <= detail::st7789::MaxHeight) void St7789Driver::setClipping(uint16_t x, uint16_t y, uint16_t width, uint16_t height) @@ -75,6 +78,7 @@ St7789Driver::setClipping(uint16_t x, uint16_t y, uint } template + requires(Width <= detail::st7789::MaxWidth && Height <= detail::st7789::MaxHeight) void St7789Driver::sendCommand(Command command) { @@ -82,6 +86,7 @@ St7789Driver::sendCommand(Command command) } template + requires(Width <= detail::st7789::MaxWidth && Height <= detail::st7789::MaxHeight) template void St7789Driver::sendCommand(Command command, Data &&data) @@ -90,6 +95,7 @@ St7789Driver::sendCommand(Command command, Data &&data } template + requires(Width <= detail::st7789::MaxWidth && Height <= detail::st7789::MaxHeight) template::ByteOrder OrderOfBytes> void St7789Driver::writeData(data data) @@ -111,6 +117,7 @@ St7789Driver::writeData(data data) } template + requires(Width <= detail::st7789::MaxWidth && Height <= detail::st7789::MaxHeight) void St7789Driver::hardReset() { @@ -123,6 +130,7 @@ St7789Driver::hardReset() } template + requires(Width <= detail::st7789::MaxWidth && Height <= detail::st7789::MaxHeight) void St7789Driver::softReset() { @@ -130,6 +138,7 @@ St7789Driver::softReset() } template + requires(Width <= detail::st7789::MaxWidth && Height <= detail::st7789::MaxHeight) void St7789Driver::setInversion(bool inversion) { @@ -137,6 +146,7 @@ St7789Driver::setInversion(bool inversion) } template + requires(Width <= detail::st7789::MaxWidth && Height <= detail::st7789::MaxHeight) void St7789Driver::turnOn() { @@ -144,6 +154,7 @@ St7789Driver::turnOn() } template + requires(Width <= detail::st7789::MaxWidth && Height <= detail::st7789::MaxHeight) void St7789Driver::turnOff() { @@ -151,6 +162,7 @@ St7789Driver::turnOff() } template + requires(Width <= detail::st7789::MaxWidth && Height <= detail::st7789::MaxHeight) void St7789Driver::setIdle(bool idle) { @@ -158,6 +170,7 @@ St7789Driver::setIdle(bool idle) } template + requires(Width <= detail::st7789::MaxWidth && Height <= detail::st7789::MaxHeight) void St7789Driver::setSleep(bool sleep) { @@ -165,6 +178,7 @@ St7789Driver::setSleep(bool sleep) } template + requires(Width <= detail::st7789::MaxWidth && Height <= detail::st7789::MaxHeight) void St7789Driver::setRgbBgrOrder(RgbBgrOrder rgb_bgr_order) { @@ -173,6 +187,7 @@ St7789Driver::setRgbBgrOrder(RgbBgrOrder rgb_bgr_order } template + requires(Width <= detail::st7789::MaxWidth && Height <= detail::st7789::MaxHeight) void St7789Driver::setOrientation(Orientation orientation) { @@ -218,6 +233,7 @@ St7789Driver::setOrientation(Orientation orientation) } template + requires(Width <= detail::st7789::MaxWidth && Height <= detail::st7789::MaxHeight) glcd::Orientation St7789Driver::getOrientation() const { diff --git a/src/modm/math/saturation/saturated.hpp b/src/modm/math/saturation/saturated.hpp index 3cfbbb781c..a97e788ec2 100644 --- a/src/modm/math/saturation/saturated.hpp +++ b/src/modm/math/saturation/saturated.hpp @@ -320,7 +320,8 @@ class Saturated // @see: https://stackoverflow.com/questions/1374037/ambiguous-overload-call-to-absdouble { value = abs(value); } - template + template + requires std::integral> friend class Saturated; }; diff --git a/test/config/lbuild.xml b/test/config/lbuild.xml index b95b718ef8..d1699f8ee5 100644 --- a/test/config/lbuild.xml +++ b/test/config/lbuild.xml @@ -8,7 +8,6 @@ - modm:build:scons diff --git a/test/modm/communication/module.lb b/test/modm/communication/module.lb index d84aa3da55..2b859bd994 100644 --- a/test/modm/communication/module.lb +++ b/test/modm/communication/module.lb @@ -22,7 +22,13 @@ class Amnb(Module): def build(self, env): env.outbasepath = "modm-test/src/modm-test/communication" - env.copy("amnb") + env.copy("amnb/message_test.cpp") + env.copy("amnb/message_test.hpp") + if not env.get("modm:processing:protothread:use_fiber", True): + env.copy("amnb/interface_test.cpp") + env.copy("amnb/interface_test.hpp") + env.copy("amnb/node_test.cpp") + env.copy("amnb/node_test.hpp") class Sab(Module): diff --git a/test/modm/processing/module.lb b/test/modm/processing/module.lb index 126784da99..04c03243cb 100644 --- a/test/modm/processing/module.lb +++ b/test/modm/processing/module.lb @@ -32,4 +32,9 @@ def prepare(module, options): def build(env): env.outbasepath = "modm-test/src/modm-test/processing" - env.copy('.') + env.copy("fiber") + env.copy("scheduler") + env.copy("timer") + if not env.get("modm:processing:protothread:use_fiber", True): + env.copy("protothread") + env.copy("resumable")