Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ci] Update to GCC12 #940

Merged
merged 7 commits into from
Feb 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
150 changes: 75 additions & 75 deletions .github/workflows/compile-all.yml

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ on:

jobs:
build-upload-docs:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
container:
image: ghcr.io/modm-ext/modm-build-base:2022-09-27
image: ghcr.io/modm-ext/modm-build-base:2023-01-08
steps:
- name: Check out repository
uses: actions/checkout@v3
Expand Down Expand Up @@ -48,9 +48,9 @@ jobs:
git push origin master
api-docs-all:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
container:
image: ghcr.io/modm-ext/modm-build-base:2022-09-27
image: ghcr.io/modm-ext/modm-build-base:2023-01-08
steps:
- name: Check out repository
uses: actions/checkout@v3
Expand Down
52 changes: 27 additions & 25 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ on: [pull_request]

jobs:
unittests-linux-generic:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
container:
image: ghcr.io/modm-ext/modm-build-cortex-m:2022-09-27
image: ghcr.io/modm-ext/modm-build-cortex-m:2023-01-08

steps:
- name: Check out repository
Expand Down Expand Up @@ -116,9 +116,9 @@ jobs:
python3 tools/xpcc_generator/builder/system_layout.py examples/xpcc/xml/communication.xml -o /tmp

stm32-examples:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
container:
image: ghcr.io/modm-ext/modm-build-cortex-m:2022-09-27
image: ghcr.io/modm-ext/modm-build-cortex-m:2023-01-08
steps:
- name: Check out repository
uses: actions/checkout@v3
Expand Down Expand Up @@ -176,9 +176,9 @@ jobs:
(cd examples && ../tools/scripts/examples_compile.py nucleo_h743zi nucleo_h723zg stm32h750vbt6_devebox)

stm32f4-examples-1:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
container:
image: ghcr.io/modm-ext/modm-build-cortex-m:2022-09-27
image: ghcr.io/modm-ext/modm-build-cortex-m:2023-01-08
steps:
- name: Check out repository
uses: actions/checkout@v3
Expand All @@ -196,9 +196,9 @@ jobs:
(cd examples && ../tools/scripts/examples_compile.py stm32f4_discovery stm32f429_discovery stm32f469_discovery)

stm32f4-examples-2:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
container:
image: ghcr.io/modm-ext/modm-build-cortex-m:2022-09-27
image: ghcr.io/modm-ext/modm-build-cortex-m:2023-01-08
steps:
- name: Check out repository
uses: actions/checkout@v3
Expand All @@ -219,9 +219,9 @@ jobs:
(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-20.04
runs-on: ubuntu-22.04
container:
image: ghcr.io/modm-ext/modm-build-avr:2022-09-27
image: ghcr.io/modm-ext/modm-build-avr:2023-01-08
steps:
- name: Check out repository
uses: actions/checkout@v3
Expand Down Expand Up @@ -259,15 +259,15 @@ jobs:
run: |
(cd test/all && python3 run_all.py at --quick)
- name: Upload log artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: hal-compile-quick-avr
path: test/all/log

hal-compile-quick-1:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
container:
image: ghcr.io/modm-ext/modm-build-cortex-m:2022-09-27
image: ghcr.io/modm-ext/modm-build-cortex-m:2023-01-08
steps:
- name: Check out repository
uses: actions/checkout@v3
Expand All @@ -284,15 +284,15 @@ jobs:
run: |
(cd test/all && python3 run_all.py stm32 sam rp --quick --split 4 --part 0)
- name: Upload log artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: hal-compile-quick-1
path: test/all/log

hal-compile-quick-2:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
container:
image: ghcr.io/modm-ext/modm-build-cortex-m:2022-09-27
image: ghcr.io/modm-ext/modm-build-cortex-m:2023-01-08
steps:
- name: Check out repository
uses: actions/checkout@v3
Expand All @@ -309,15 +309,15 @@ jobs:
run: |
(cd test/all && python3 run_all.py stm32 sam rp --quick --split 4 --part 1)
- name: Upload log artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: hal-compile-quick-2
path: test/all/log

hal-compile-quick-3:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
container:
image: ghcr.io/modm-ext/modm-build-cortex-m:2022-09-27
image: ghcr.io/modm-ext/modm-build-cortex-m:2023-01-08
steps:
- name: Check out repository
uses: actions/checkout@v3
Expand All @@ -334,15 +334,15 @@ jobs:
run: |
(cd test/all && python3 run_all.py stm32 sam rp --quick --split 4 --part 2)
- name: Upload log artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: hal-compile-quick-3
path: test/all/log

hal-compile-quick-4:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
container:
image: ghcr.io/modm-ext/modm-build-cortex-m:2022-09-27
image: ghcr.io/modm-ext/modm-build-cortex-m:2023-01-08
steps:
- name: Check out repository
uses: actions/checkout@v3
Expand All @@ -359,13 +359,15 @@ jobs:
run: |
(cd test/all && python3 run_all.py stm32 sam rp --quick --split 4 --part 3)
- name: Upload log artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: hal-compile-quick-4
path: test/all/log

# Niklas: Running on the old container until I can figure out why the doc generator hangs
build-docs-test:
runs-on: ubuntu-20.04
timeout-minutes: 30
container:
image: ghcr.io/modm-ext/modm-build-base:2022-09-27
steps:
Expand All @@ -391,7 +393,7 @@ jobs:
export COLUMNS=120
python3 tools/scripts/docs_modm_io_generator.py -t -c -j4 -d
- name: Upload Doxypress Documentation
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: build-docs-test
path: modm-api-docs.tar.gz
Expand All @@ -406,7 +408,7 @@ jobs:
ls -l docs/src/reference/module
(cd docs && mkdocs build)
- name: Upload Homepage Documentation
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: build-homepage-test
path: docs/modm.io
Expand Down
28 changes: 17 additions & 11 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,27 @@ jobs:

steps:
# update Xcode version to fix linker bug
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '14.1'
# - uses: maxim-lobanov/setup-xcode@v1
# with:
# xcode-version: '14.2'

- name: Setup environment - Brew tap
run: |
brew tap modm-ext/arm
brew tap modm-ext/avr
brew tap osx-cross/avr

- name: Setup environment - Brew install
run: |
export HOMEBREW_NO_INSTALL_CLEANUP=1 # saves time
brew update
brew install doxygen boost gcc avr-gcc@10 arm-gcc-bin cmake || true
brew link --force avr-gcc@10
brew install doxygen boost gcc avr-gcc@12 arm-gcc-bin@12 cmake || true
brew link --force avr-gcc@12
# brew upgrade boost gcc git || true

- uses: actions/setup-python@v4
with:
python-version: '3.11'

- name: Setup environment - Python pip
run: |
pip3 install --user modm scons
Expand All @@ -39,25 +43,27 @@ jobs:
python --version || true
python3 --version || true
python3 -c "import os; print(os.cpu_count())"
which scons
scons --version
which g++
g++ --version
which avr-g++
avr-g++ --version
which arm-none-eabi-g++
arm-none-eabi-g++ --version
which lbuild
lbuild --version
which avr-g++
avr-g++ --version
which scons
scons --version

- name: Check out repository
if: always()
uses: actions/checkout@v3
with:
submodules: 'recursive'

- name: Update lbuild
if: always()
run: |
pip3 install --upgrade --upgrade-strategy=eager modm
pip3 install --upgrade --user --upgrade-strategy=eager modm

- name: Hosted Unittests
if: always()
Expand Down
15 changes: 7 additions & 8 deletions .github/workflows/windows_armcortexm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
run: Set-MpPreference -DisableRealtimeMonitoring $true

- name: Install Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: "3.8"
python-version: "3.11"

- name: Install Python packages
run: |
Expand All @@ -27,16 +27,15 @@ jobs:
shell: powershell
run: |
$ProgressPreference = 'SilentlyContinue'
Invoke-WebRequest -OutFile gcc-arm-none-eabi-win32.zip https://developer.arm.com/-/media/Files/downloads/gnu-rm/10.3-2021.10/gcc-arm-none-eabi-10.3-2021.10-win32.zip
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

- name: Install ARM Toolchain
shell: powershell
run: |
Add-Type -Assembly "System.IO.Compression.Filesystem"
[System.IO.Compression.ZipFile]::ExtractToDirectory("gcc-arm-none-eabi-win32.zip", "C:\")
dir C:\gcc-arm-none-eabi-10.3-2021.10
echo "C:\gcc-arm-none-eabi-10.3-2021.10\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
rm gcc-arm-none-eabi-win32.zip
Expand-Archive -Path gcc-arm-none-eabi-win64.zip -DestinationPath C:\ -Force
dir C:\arm-gnu-toolchain-12.2.rel1-mingw-w64-i686-arm-none-eabi
echo "C:\arm-gnu-toolchain-12.2.rel1-mingw-w64-i686-arm-none-eabi\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
rm gcc-arm-none-eabi-win64.zip

- name: Show lbuild and arm-none-eabi-gcc Version Information
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/windows_hosted.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
run: Set-MpPreference -DisableRealtimeMonitoring $true

- name: Install Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: "3.8"
python-version: "3.11"

- name: Install Python packages
run: |
Expand All @@ -26,7 +26,7 @@ jobs:
- name: Download GCC for Windows
run: |
$ProgressPreference = 'SilentlyContinue'
Invoke-WebRequest -OutFile winlibs-gcc.zip https://github.com/brechtsanders/winlibs_mingw/releases/download/10.3.0-12.0.0-9.0.0-r2/winlibs-x86_64-posix-seh-gcc-10.3.0-mingw-w64-9.0.0-r2.zip
Invoke-WebRequest -OutFile winlibs-gcc.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

- name: Unpack GCC for Windows
shell: powershell
Expand Down
Loading