Skip to content

Commit 2b9f5f1

Browse files
authored
[CI] Add YAML files lint job (#281)
1 parent d9bde37 commit 2b9f5f1

File tree

6 files changed

+1077
-1032
lines changed

6 files changed

+1077
-1032
lines changed

.github/workflows/codeql.yml

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -19,40 +19,40 @@ jobs:
1919
language:
2020
- cpp
2121
steps:
22-
- uses: actions/checkout@v4
23-
with:
24-
submodules: recursive
25-
- name: Setup environment
26-
run: |
27-
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
28-
sudo apt-get update
29-
sudo apt-get install -y gcc-14 g++-14 ninja-build mpich libomp-dev valgrind
30-
python3 -m pip install -r requirements.txt
31-
- name: ccache
32-
uses: hendrikmuhs/ccache-action@v1.2
33-
with:
22+
- uses: actions/checkout@v4
23+
with:
24+
submodules: recursive
25+
- name: Setup environment
26+
run: |
27+
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
28+
sudo apt-get update
29+
sudo apt-get install -y gcc-14 g++-14 ninja-build mpich libomp-dev valgrind
30+
python3 -m pip install -r requirements.txt
31+
- name: ccache
32+
uses: hendrikmuhs/ccache-action@v1.2
33+
with:
3434
key: ${{ runner.os }}-gcc
3535
create-symlink: true
3636
max-size: 1G
37-
- name: Initialize CodeQL
38-
uses: github/codeql-action/init@v3
39-
with:
40-
languages: ${{ matrix.language }}
41-
- name: CMake configure
42-
run: >
43-
cmake -S . -B build
44-
-D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
45-
-G Ninja -D USE_SEQ=ON -D USE_MPI=ON -D USE_OMP=ON -D USE_TBB=ON -D USE_STL=ON
46-
-D USE_FUNC_TESTS=ON -D USE_PERF_TESTS=ON
47-
-D CMAKE_BUILD_TYPE=RELEASE
48-
env:
49-
CC: gcc-14
50-
CXX: g++-14
51-
- name: Build project
52-
run: |
53-
cmake --build build --parallel
54-
env:
55-
CC: gcc-14
56-
CXX: g++-14
57-
- name: Perform CodeQL Analysis
58-
uses: github/codeql-action/analyze@v3
37+
- name: Initialize CodeQL
38+
uses: github/codeql-action/init@v3
39+
with:
40+
languages: ${{ matrix.language }}
41+
- name: CMake configure
42+
run: >
43+
cmake -S . -B build
44+
-D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
45+
-G Ninja -D USE_SEQ=ON -D USE_MPI=ON -D USE_OMP=ON -D USE_TBB=ON -D USE_STL=ON
46+
-D USE_FUNC_TESTS=ON -D USE_PERF_TESTS=ON
47+
-D CMAKE_BUILD_TYPE=RELEASE
48+
env:
49+
CC: gcc-14
50+
CXX: g++-14
51+
- name: Build project
52+
run: |
53+
cmake --build build --parallel
54+
env:
55+
CC: gcc-14
56+
CXX: g++-14
57+
- name: Perform CodeQL Analysis
58+
uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)