Skip to content

Commit 21a53d4

Browse files
committed
Run yamlfmt
1 parent c0a9d02 commit 21a53d4

File tree

2 files changed

+9
-53
lines changed

2 files changed

+9
-53
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,28 @@
11
name: Test
2-
32
on:
43
push:
5-
branches: [ main ]
4+
branches: [main]
65
pull_request:
7-
branches: [ main ]
8-
6+
branches: [main]
97
jobs:
108
build:
119
name: ${{ matrix.config.name }}
1210
runs-on: ${{ matrix.config.os }}
13-
1411
strategy:
1512
fail-fast: false
16-
1713
matrix:
1814
config:
19-
- {
20-
name: "Ubuntu Clang 17",
21-
os: ubuntu-24.04,
22-
toolchain: "clang-17-toolchain.cmake",
23-
clang_version: 17,
24-
installed_clang_version: 14,
25-
cmake_args: "-G \"Ninja Multi-Config\" -DCMAKE_CONFIGURATION_TYPES=\"RelWithDebInfo;Asan\" "
26-
}
27-
28-
- {
29-
name: "Ubuntu Clang 18",
30-
os: ubuntu-24.04,
31-
toolchain: "clang-18-toolchain.cmake",
32-
clang_version: 18,
33-
installed_clang_version: 14,
34-
cmake_args: "-G \"Ninja Multi-Config\" -DCMAKE_CONFIGURATION_TYPES=\"RelWithDebInfo;Asan\" "
35-
}
36-
37-
- {
38-
name: "Ubuntu GCC 13",
39-
os: ubuntu-24.04,
40-
toolchain: "gcc-13-toolchain.cmake",
41-
clang_version: 17,
42-
installed_clang_version: 14,
43-
cmake_args: "-G \"Ninja Multi-Config\" -DCMAKE_CONFIGURATION_TYPES=\"RelWithDebInfo;Asan\" "
44-
}
45-
46-
- {
47-
name: "Ubuntu GCC 14",
48-
os: ubuntu-24.04,
49-
toolchain: "gcc-14-toolchain.cmake",
50-
clang_version: 17,
51-
installed_clang_version: 14,
52-
cmake_args: "-G \"Ninja Multi-Config\" -DCMAKE_CONFIGURATION_TYPES=\"RelWithDebInfo;Asan\" "
53-
}
54-
15+
- {name: "Ubuntu Clang 17", os: ubuntu-24.04, toolchain: "clang-17-toolchain.cmake", clang_version: 17, installed_clang_version: 14, cmake_args: "-G \"Ninja Multi-Config\" -DCMAKE_CONFIGURATION_TYPES=\"RelWithDebInfo;Asan\" "}
16+
- {name: "Ubuntu Clang 18", os: ubuntu-24.04, toolchain: "clang-18-toolchain.cmake", clang_version: 18, installed_clang_version: 14, cmake_args: "-G \"Ninja Multi-Config\" -DCMAKE_CONFIGURATION_TYPES=\"RelWithDebInfo;Asan\" "}
17+
- {name: "Ubuntu GCC 13", os: ubuntu-24.04, toolchain: "gcc-13-toolchain.cmake", clang_version: 17, installed_clang_version: 14, cmake_args: "-G \"Ninja Multi-Config\" -DCMAKE_CONFIGURATION_TYPES=\"RelWithDebInfo;Asan\" "}
18+
- {name: "Ubuntu GCC 14", os: ubuntu-24.04, toolchain: "gcc-14-toolchain.cmake", clang_version: 17, installed_clang_version: 14, cmake_args: "-G \"Ninja Multi-Config\" -DCMAKE_CONFIGURATION_TYPES=\"RelWithDebInfo;Asan\" "}
5519
steps:
5620
- uses: actions/checkout@v3
5721
with:
5822
submodules: 'true'
59-
6023
- uses: seanmiddleditch/gha-setup-ninja@master
61-
6224
- name: Activate verbose shell
6325
run: set -x
64-
6526
- name: Install LLVM+Clang
6627
if: startsWith(matrix.config.os, 'ubuntu-')
6728
run: |
@@ -89,15 +50,11 @@ jobs:
8950
chmod +x llvm.sh
9051
sudo ./llvm.sh ${{matrix.config.clang_version}} all
9152
sudo apt-get install libc++-dev libc++1 libc++abi-dev libc++abi1
92-
93-
9453
- name: Install GCC 14
9554
if: matrix.config.name == 'Ubuntu GCC 14'
9655
run: |
9756
sudo apt update
9857
sudo apt-get install g++-14
99-
100-
10158
- name: Configure
10259
run: |
10360
rm -rf .build
@@ -106,11 +63,9 @@ jobs:
10663
echo ${{ matrix.config.cmake_args }}
10764
echo ${{ matrix.config.toolchain }}
10865
cmake ${{ matrix.config.cmake_args }} -DCMAKE_TOOLCHAIN_FILE=etc/${{ matrix.config.toolchain }} -B . -S ..
109-
11066
- name: Build
11167
run: |
11268
cmake --build .build --config Asan --target all -- -k 0
113-
11469
- name: Test
11570
run: |
11671
cd .build

scripts/lint-all.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ echo "All scripts files were linted."
2525
find README.md examples/ -name "*.md" | xargs markdownlint -f || echo "markdownlint failed."
2626
echo "All Markdown files were linted."
2727

28-
# TODO: Lint all YAML files in the project.
29-
# echo "All YAML files were linted."
28+
# Lint all YAML files in the project.
29+
find . -name "*.yaml" -o -name "*.yml" | xargs yamlfmt || echo "yamlfmt failed."
30+
echo "All YAML files were linted."
3031

3132
# TODO: Lint all JSON files in the project.
3233
# echo "All JSON files were linted."

0 commit comments

Comments
 (0)