Skip to content

Merge pull request #336 from saraedum/bylengthorder #470

Merge pull request #336 from saraedum/bylengthorder

Merge pull request #336 from saraedum/bylengthorder #470

Workflow file for this run

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/clang-format-lint-action@v0.11
with:
source: libflatsurf
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: bot@flatsurf.org
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 libflatsurf/environment.yml
conda list
- name: make
shell: bash -l {0}
run: |
cd libflatsurf
./bootstrap
./configure --prefix="$PREFIX" --without-benchmark
# 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