Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 10f1551

Browse files
committed
try again style.yml
1 parent de45ec2 commit 10f1551

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

.github/workflows/style.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Style
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- main
8+
pull_request:
9+
branches:
10+
- master
11+
- main
12+
13+
env:
14+
CPM_SOURCE_CACHE: ${{ github.workspace }}/cpm_modules
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- uses: actions/checkout@v3
22+
23+
- uses: actions/cache@v3
24+
with:
25+
path: "**/cpm_modules"
26+
key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }}
27+
28+
- name: Add conda to system path
29+
run: |
30+
# $CONDA is an environment variable pointing to the root of the miniconda directory
31+
echo $CONDA/bin >> $GITHUB_PATH
32+
33+
- name: Install dependent software
34+
run: |
35+
conda info
36+
conda env update --file environment-dev.yml --name base
37+
38+
- name: Before Install
39+
run: |
40+
sudo apt-get install g++-10
41+
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 90
42+
43+
- name: Install format dependencies
44+
run: pip3 install clang-format==18.1.2 cmake_format==0.6.13 pyyaml
45+
46+
- name: configure
47+
run: cmake -S. -Bbuild
48+
49+
- name: check style
50+
run: cmake --build build --target check-format

0 commit comments

Comments
 (0)