Skip to content

Merge branch 'main' into scorpion #221

Merge branch 'main' into scorpion

Merge branch 'main' into scorpion #221

Workflow file for this run

---
name: Code style tests
on:
push:
branches: [main, release-*, scorpion]
pull_request:
branches: [main, release-*, scorpion]
jobs:
style:
name: Test code style
runs-on: ubuntu-22.04
steps:
- name: Clone repository
uses: actions/checkout@v3
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
pip3 install tox
sudo apt-get -y install clang-tidy-12
# TODO: Remove once issue with Ubuntu 22.04 and clang++-14 is resolved.
- name: Work around https://github.com/actions/runner-images/issues/8659
run: |
sudo rm -f /etc/apt/sources.list.d/ubuntu-toolchain-r-ubuntu-test-jammy.list
sudo apt-get update
sudo apt-get install -y --allow-downgrades libc6=2.35-* libc6-dev=2.35-* libstdc++6=12.3.0-* libgcc-s1=12.3.0-*
- name: Install uncrustify
run: |
# Set up uncrustify.
wget https://github.com/uncrustify/uncrustify/archive/uncrustify-0.72.0.tar.gz
tar xzf uncrustify-0.72.0.tar.gz
cd uncrustify-uncrustify-0.72.0
mkdir build
cd build
cmake ../
make -j2
mv uncrustify ../../
cd ../../
rm -rf uncrustify-0.72.0.tar.gz uncrustify-uncrustify-0.72.0
- name: Run code style tests
run: |
export PATH="$(pwd):$PATH" # Add uncrustify to path.
cd misc/
tox -e style,clang-tidy
...