Skip to content

Bump version number to 2.0.0-rc.2 for correct version comparisons dur… #4125

Bump version number to 2.0.0-rc.2 for correct version comparisons dur…

Bump version number to 2.0.0-rc.2 for correct version comparisons dur… #4125

Workflow file for this run

# Lint the project using cpplint
name: Lint
on:
# Branch pushes that do not only modify other workflow files
push:
branches:
- '**'
paths:
- "**"
- "!.github/**"
- ".github/scripts/install_cuda_ubuntu.sh"
- ".github/workflows/Lint.yml"
# Disabled for now. See https://github.com/FLAMEGPU/FLAMEGPU2/pull/644
# pull_request:
# Allow manual invocation.
workflow_dispatch:
defaults:
run:
shell: bash
jobs:
cpplint:
runs-on: ${{ matrix.cudacxx.os }}
name: "cpplint (${{ matrix.cudacxx.cuda }}, ${{ matrix.cudacxx.os }})"
strategy:
fail-fast: false
# Multiplicative build matrix
# optional exclude: can be partial, include: must be specific
matrix:
cudacxx:
- cuda: "11.8"
os: ubuntu-20.04
env:
# Define constants
BUILD_DIR: "build"
FLAMEGPU_BUILD_TESTS: "ON"
# Port matrix options to environment, for more portability.
CUDA: ${{ matrix.cudacxx.cuda }}
OS: ${{ matrix.cudacxx.os }}
steps:
- uses: actions/checkout@v3
- name: Install CUDA
if: ${{ startswith(env.OS, 'ubuntu') && env.CUDA != '' }}
env:
cuda: ${{ env.CUDA }}
run: .github/scripts/install_cuda_ubuntu.sh
- name: Install cpplint
run: |
python3 -m pip install cpplint
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Add custom problem matchers for annotations
run: echo "::add-matcher::.github/problem-matchers.json"
- name: Configure cmake
run: >
cmake . -B "${{ env.BUILD_DIR }}"
-Werror=dev
-DCMAKE_WARN_DEPRECATED="OFF"
-DFLAMEGPU_WARNINGS_AS_ERRORS="ON"
-DFLAMEGPU_BUILD_TESTS="${{ env.FLAMEGPU_BUILD_TESTS }}"
- name: Lint
working-directory: ${{ env.BUILD_DIR }}
run: cmake --build . --target all_lint --verbose -j `nproc`