This repository has been archived by the owner on Nov 11, 2024. It is now read-only.
Update style.yml #54
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: style | |
on: | |
pull_request: | |
push: | |
jobs: | |
style: | |
name: style | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: dependencies | |
run: | | |
sudo apt update | |
sudo apt install doxygen python3 cmake | |
# Install AStyle 3.4.10 (you only get 3.1 from apt install) | |
wget https://sourceforge.net/projects/astyle/files/astyle/astyle%203.4/astyle-3.4.10.tar.bz2/download -O astyle.tar.bz2 tar -xf astyle.tar.bz2 | |
cd astyle-3.4.10 | |
mkdir as-gcc-exe | |
cd as-gcc-exe | |
cmake ../ | |
make | |
make install | |
- name: check | |
run: | | |
python3 astyle.py && UBX_WORKDIR="$(pwd)" doxygen |