Skip to content

Commit

Permalink
restore style check
Browse files Browse the repository at this point in the history
  • Loading branch information
luk036 committed May 2, 2024
1 parent e89ffc2 commit 2d49b24
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Style

on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main

env:
CPM_SOURCE_CACHE: ${{ github.workspace }}/cpm_modules

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- uses: actions/cache@v3
with:
path: "**/cpm_modules"
key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }}

- name: Before Install
run: |
sudo apt-get install g++-10
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 90
- name: Install format dependencies
run: |
sudo apt-get install clang-format
pip3 install cmake_format==0.6.13 pyyaml
- name: configure
run: cmake -Stest -Bbuild

- name: check style
run: cmake --build build --target check-format
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[![Actions Status](https://github.com/luk036/physdes-cpp/workflows/MacOS/badge.svg)](https://github.com/luk036/physdes-cpp/actions)
[![Actions Status](https://github.com/luk036/physdes-cpp/workflows/Windows/badge.svg)](https://github.com/luk036/physdes-cpp/actions)
[![Actions Status](https://github.com/luk036/physdes-cpp/workflows/Ubuntu/badge.svg)](https://github.com/luk036/physdes-cpp/actions)
[![Actions Status](https://github.com/luk036/physdes-cpp/workflows/Style/badge.svg)](https://github.com/luk036/physdes-cpp/actions)
[![Actions Status](https://github.com/luk036/physdes-cpp/workflows/Install/badge.svg)](https://github.com/luk036/physdes-cpp/actions)
[![codecov](https://codecov.io/gh/luk036/physdes-cpp/branch/master/graph/badge.svg)](https://codecov.io/gh/luk036/physdes-cpp)

Expand Down

0 comments on commit 2d49b24

Please sign in to comment.