Skip to content

Commit

Permalink
🔀️ Merge branch 'ladislas/bugfix/fix-ci-ubuntu' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
ladislas committed May 23, 2024
2 parents 0b4853c + 441cb37 commit 85b3756
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 22 deletions.
12 changes: 9 additions & 3 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,15 @@ runs:
- name: Install pip packages
shell: bash
run: |
pip install --upgrade --upgrade-strategy eager -r ./requirements.txt
pip install --upgrade --upgrade-strategy eager -r ./tools/config/mbed_requirements.txt
pip install --upgrade --upgrade-strategy eager -r ./extern/mcuboot/scripts/requirements.txt
BREAK_SYSTEM_PACKAGES=""
if [[ $ImageOS == "ubuntu24" ]]; then
BREAK_SYSTEM_PACKAGES="--break-system-packages"
fi
echo "ImageOS: $ImageOS"
echo "BREAK_SYSTEM_PACKAGES: $BREAK_SYSTEM_PACKAGES"
pip install --upgrade --upgrade-strategy eager -r ./requirements.txt $BREAK_SYSTEM_PACKAGES
pip install --upgrade --upgrade-strategy eager -r ./tools/config/mbed_requirements.txt $BREAK_SYSTEM_PACKAGES
pip install --upgrade --upgrade-strategy eager -r ./extern/mcuboot/scripts/requirements.txt $BREAK_SYSTEM_PACKAGES
- name: Test pip packages
shell: bash
Expand Down
52 changes: 43 additions & 9 deletions .github/workflows/ci-code_analysis-sanitizers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,53 @@ concurrency:
jobs:
run_sanitizers:
name: Build & run
runs-on: ubuntu-22.04
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
compiler:
[
{ name: Clang 15, cc: /usr/bin/clang-15, cxx: /usr/bin/clang++-15 },
{ name: GCC 10, cc: /usr/bin/gcc-10, cxx: /usr/bin/g++-10 },
{ name: GCC 12, cc: /usr/bin/gcc-12, cxx: /usr/bin/g++-12 },
{ name: GCC 13, cc: /usr/bin/gcc-13, cxx: /usr/bin/g++-13 },
]
optimisation_level: ["-Og", "-Os"]
include:
- os: ubuntu-22.04
optimisation_level: "-Og"
compiler:
name: GCC 10
cc: /usr/bin/gcc-10
cxx: /usr/bin/g++-10

- os: ubuntu-22.04
optimisation_level: "-Os"
compiler:
name: GCC 10
cc: /usr/bin/gcc-10
cxx: /usr/bin/g++-10

- os: ubuntu-24.04
optimisation_level: "-Og"
compiler:
name: Clang 18
cc: /usr/bin/clang-18
cxx: /usr/bin/clang++-18

- os: ubuntu-24.04
optimisation_level: "-Os"
compiler:
name: Clang 18
cc: /usr/bin/clang-18
cxx: /usr/bin/clang++-18

- os: ubuntu-24.04
optimisation_level: "-Og"
compiler:
name: GCC 13
cc: /usr/bin/gcc-13
cxx: /usr/bin/g++-13

- os: ubuntu-24.04
optimisation_level: "-Os"
compiler:
name: GCC 13
cc: /usr/bin/gcc-13
cxx: /usr/bin/g++-13

steps:
- uses: actions/checkout@v4
Expand Down
27 changes: 19 additions & 8 deletions .github/workflows/ci-unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,29 @@ concurrency:
jobs:
run_unit_tests:
name: Build & run
runs-on: ubuntu-22.04
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
compiler: [
{ name: Clang 15, cc: /usr/bin/clang-15, cxx: /usr/bin/clang++-15 },
{ name: GCC 10, cc: /usr/bin/gcc-10, cxx: /usr/bin/g++-10 },
# { name: GCC 11, cc: /usr/bin/gcc-11, cxx: /usr/bin/g++-11 }, # ? Not working yet, see https://github.com/boost-ext/sml/issues/546
{ name: GCC 12, cc: /usr/bin/gcc-12, cxx: /usr/bin/g++-12 },
{ name: GCC 13, cc: /usr/bin/gcc-13, cxx: /usr/bin/g++-13 },
]
include:
- os: ubuntu-22.04
compiler:
name: GCC 10
cc: /usr/bin/gcc-10
cxx: /usr/bin/g++-10

- os: ubuntu-24.04
compiler:
name: Clang 18
cc: /usr/bin/clang-18
cxx: /usr/bin/clang++-18

- os: ubuntu-24.04
compiler:
name: GCC 13
cc: /usr/bin/gcc-13
cxx: /usr/bin/g++-13

steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions docs/INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ I recommend the manual install. Make sure to follow the instructions from mbed:
> <https://os.mbed.com/docs/mbed-os/v6.15/build-tools/install-and-set-up.html>
```bash
python3 -m pip install -U --user -r --break-system-packages ./requirements.txt
python3 -m pip install -U --user -r --break-system-packages ./tools/config/mbed_requirements.txt
python3 -m pip install -U --user -r ./requirements.txt --break-system-packages
python3 -m pip install -U --user -r ./tools/config/mbed_requirements.txt --break-system-packages
```

### 3. Install arm-none-eabi-gcc
Expand Down

0 comments on commit 85b3756

Please sign in to comment.