Link to documentation in README #94
Workflow file for this run
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: Code Lint | |
on: | |
push: { branches: [ "master" ] } | |
pull_request: { branches: [ "master" ] } | |
concurrency: | |
group: lint-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
clang-format: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: DoozyX/[email protected] | |
with: | |
source: gmpxxll | |
clangFormatVersion: 10 | |
extensions: cc,hpp,ipp,h,h.in,hpp.in | |
inplace: true | |
- uses: EndBug/add-and-commit@v4 | |
with: | |
author_name: clang-format bot | |
author_email: [email protected] | |
message: 'clang-format source code' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
compiler-warnings: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
cxxflags: | |
- -UNDEBUG | |
- -DNDEBUG | |
steps: | |
- uses: actions/checkout@v2 | |
with: { submodules: recursive } | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: { miniforge-variant: "Mambaforge", miniforge-version: "latest" } | |
- name: install dependencies | |
shell: bash -l {0} | |
run: | | |
mamba env update --quiet -n test -f environment.yml | |
conda list | |
- name: make | |
shell: bash -l {0} | |
run: | | |
./bootstrap | |
./configure --prefix="$PREFIX" --without-benchmark --without-doc | |
# Build library and its tests (but do not run any tests.) | |
make check TESTS= CXXFLAGS="$CXXFLAGS ${{ matrix.cxxflags }} -Werror -Wall -Wextra -pedantic -Wcast-align -Wcast-qual -Wctor-dtor-privacy -Wno-sign-compare -Wdisabled-optimization -Wformat=2 -Winit-self -Wlogical-op -Wmissing-include-dirs -Wold-style-cast -Woverloaded-virtual -Wno-redundant-decls -Wsign-promo -Wstrict-null-sentinel -Wundef -fdiagnostics-show-option -Wconversion -Wshadow-compatible-local -Wno-deprecated -Wno-deprecated-declarations" | |
env: | |
MAKEFLAGS: -j2 |