Remove warning for >=C++20 compilers #275
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: Check Style | |
on: | |
push: | |
pull_request: | |
env: | |
DIST_PREREQ: autoconf automake libtool libgmp-dev libmpfr-dev libqd-dev | |
MAX_ENUM_DIM: 64 | |
MAX_PARALLEL_ENUM_DIM: 20 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out | |
uses: actions/checkout@v4 | |
- name: Install prerequisites | |
run: | | |
sudo DEBIAN_FRONTEND=noninteractive apt-get update | |
sudo DEBIAN_FRONTEND=noninteractive apt-get install $DIST_PREREQ | |
- name: Configure | |
run: | | |
./autogen.sh | |
./configure --disable-static --with-max-enum-dim=$MAX_ENUM_DIM \ | |
--with-max-parallel-enum-dim=$MAX_PARALLEL_ENUM_DIM | |
- name: Check style | |
run: | | |
make check-style | |
if [[ $(git status -s) ]]; then | |
git --no-pager diff | |
echo "Code does not adhere to the project standards. Run \"make check-style\"."; | |
exit 1; | |
else | |
echo "Code adheres to the project standards."; | |
exit 0; | |
fi; |