Skip to content

Commit

Permalink
Adds Linter action
Browse files Browse the repository at this point in the history
  • Loading branch information
dylon committed Feb 13, 2024
1 parent 2e68f5f commit e2983d1
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Linter

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
# Set fail-fast to false to ensure that feedback is delivered for all
# matrix combinations. Consider changing this to true when your workflow
# is stable.
fail-fast: false

matrix:
os: [ubuntu-latest]
build_type: [Debug]

steps:
- name: Checkout
uses: actions/checkout@v4.1.1

- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v3.0.1
with:
auto-activate-base: false
environment-file: environment.yml
activate-environment: ll-cpp
miniforge-version: latest
use-mamba: true
channels: conda-forge

- name: Configure CMake
shell: bash -el {0}
run: >
cmake -B build
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-DENABLE_LINTING=ON
- name: Build
shell: bash -el {0}
run: cmake --build build --config ${{ matrix.build_type }}

0 comments on commit e2983d1

Please sign in to comment.