Skip to content

Commit 3ae7cfe

Browse files
trollkarlenpauldreik
authored andcommitted
fix yamllint in workflows
add all files to do_yamllint.sh Signed-off-by: Robert Marklund <robbelibobban@gmail.com>
1 parent 6ac64fa commit 3ae7cfe

21 files changed

+446
-399
lines changed

.github/workflows/clang18.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
---
12
name: clang 18
23

3-
on:
4+
"on":
45
push:
56
branches:
67
- main
@@ -14,21 +15,20 @@ jobs:
1415
runs-on: ubuntu-24.04
1516

1617
steps:
17-
- name: checkout
18-
uses: actions/checkout@v4
19-
- name: install packages
20-
run: sudo apt install build-essential nettle-dev time clang-18
21-
- name: bootstrap
22-
run: ./bootstrap.sh
23-
- name: configure
24-
run: ./configure CXX=clang++-18
25-
- name: build
26-
run: make
27-
- name: check
28-
run: make check
29-
- name: store the logs as an artifact
30-
if: ${{ always() }}
31-
uses: actions/upload-artifact@v4
32-
with:
33-
path: '**/*.log'
34-
18+
- name: checkout
19+
uses: actions/checkout@v4
20+
- name: install packages
21+
run: sudo apt install build-essential nettle-dev time clang-18
22+
- name: bootstrap
23+
run: ./bootstrap.sh
24+
- name: configure
25+
run: ./configure CXX=clang++-18
26+
- name: build
27+
run: make
28+
- name: check
29+
run: make check
30+
- name: store the logs as an artifact
31+
if: ${{ always() }}
32+
uses: actions/upload-artifact@v4
33+
with:
34+
path: '**/*.log'

.github/workflows/codeql.yml

Lines changed: 31 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
# For most projects, this workflow file will not need changing; you simply need
23
# to commit it to your repository.
34
#
@@ -11,12 +12,12 @@
1112
#
1213
name: "CodeQL"
1314

14-
on:
15+
"on":
1516
push:
16-
branches: [ "main", "devel" ]
17+
branches: ["main", "devel"]
1718
pull_request:
1819
# The branches below must be a subset of the branches above
19-
branches: [ "main", "devel" ]
20+
branches: ["main", "devel"]
2021
schedule:
2122
- cron: '39 4 * * 0'
2223

@@ -32,39 +33,40 @@ jobs:
3233
strategy:
3334
fail-fast: false
3435
matrix:
35-
language: [ 'cpp' ]
36+
language: ['cpp']
3637
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby', 'swift' ]
3738
# Use only 'java' to analyze code written in Java, Kotlin or both
3839
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
3940
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
4041

4142
steps:
42-
- name: Checkout repository
43-
uses: actions/checkout@v4
43+
- name: Checkout repository
44+
uses: actions/checkout@v4
4445

45-
- name: Install dependencies
46-
run: |
47-
sudo apt-get update
48-
sudo apt-get install autoconf autoconf-archive nettle-dev build-essential g++ -y
46+
- name: Install dependencies
47+
run: |
48+
sudo apt-get update
49+
sudo apt-get install autoconf autoconf-archive nettle-dev build-essential g++ -y
4950
50-
# Initializes the CodeQL tools for scanning.
51-
- name: Initialize CodeQL
52-
uses: github/codeql-action/init@v2
53-
with:
54-
languages: ${{ matrix.language }}
55-
# If you wish to specify custom queries, you can do so here or in a config file.
56-
# By default, queries listed here will override any specified in a config file.
57-
# Prefix the list here with "+" to use these queries and those in the config file.
51+
# Initializes the CodeQL tools for scanning.
52+
- name: Initialize CodeQL
53+
uses: github/codeql-action/init@v2
54+
with:
55+
languages: ${{ matrix.language }}
56+
# If you wish to specify custom queries, you can do so here or in a config file.
57+
# By default, queries listed here will override any specified in a config file.
58+
# Prefix the list here with "+" to use these queries and those in the config file.
5859

59-
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
60-
# queries: security-extended,security-and-quality
61-
- name: Build
62-
run: |
63-
./bootstrap.sh
64-
./configure
65-
make
60+
# For more details on CodeQL's query packs, refer to:
61+
# https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
62+
# queries: security-extended,security-and-quality
63+
- name: Build
64+
run: |
65+
./bootstrap.sh
66+
./configure
67+
make
6668
67-
- name: Perform CodeQL Analysis
68-
uses: github/codeql-action/analyze@v2
69-
with:
70-
category: "/language:${{matrix.language}}"
69+
- name: Perform CodeQL Analysis
70+
uses: github/codeql-action/analyze@v2
71+
with:
72+
category: "/language:${{matrix.language}}"

.github/workflows/cppcheck.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
---
12
name: cppcheck
23

3-
on:
4+
"on":
45
push:
56
branches:
67
- main
@@ -14,15 +15,14 @@ jobs:
1415
runs-on: ubuntu-20.04
1516

1617
steps:
17-
- name: checkout
18-
uses: actions/checkout@v4
19-
- name: install packages
20-
run: sudo apt install cppcheck
21-
- name: run cppcheck
22-
run: cppcheck/run_cppcheck.sh
23-
- name: store the cppcheck output as an artifact
24-
if: ${{ always() }}
25-
uses: actions/upload-artifact@v4
26-
with:
27-
path: 'cppcheck/out/*'
28-
18+
- name: checkout
19+
uses: actions/checkout@v4
20+
- name: install packages
21+
run: sudo apt install cppcheck
22+
- name: run cppcheck
23+
run: cppcheck/run_cppcheck.sh
24+
- name: store the cppcheck output as an artifact
25+
if: ${{ always() }}
26+
uses: actions/upload-artifact@v4
27+
with:
28+
path: 'cppcheck/out/*'
Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
---
12
name: debian 12 bookworm
23

3-
on:
4+
"on":
45
push:
56
branches:
67
- main
@@ -14,29 +15,29 @@ jobs:
1415
container:
1516
image: debian:bookworm-slim
1617
steps:
17-
- name: checkout
18-
uses: actions/checkout@v4
19-
- name: install packages
20-
run: apt-get update && apt-get install autoconf build-essential nettle-dev libcap2-bin --yes
21-
- name: bootstrap
22-
run: ./bootstrap.sh
23-
- name: configure
24-
run: ./configure --enable-warnings CXXFLAGS=-std=c++17
25-
- name: make
26-
run: make
27-
- name: make check
28-
run: make check
29-
- name: make distcheck
30-
run: make distcheck CXXFLAGS=-std=c++17
31-
- name: build with hardened build flags
32-
run: |
33-
make clean
34-
eval $(DEB_CXXFLAGS_APPEND=-std=c++17 DEB_BUILD_MAINT_OPTIONS="hardening=+all qa=+all,-canary reproducible=+all" dpkg-buildflags --export=sh)
35-
./configure
36-
make
37-
make check
38-
- name: store the logs as an artifact
39-
if: ${{ always() }}
40-
uses: actions/upload-artifact@v4
41-
with:
42-
path: '**/*.log'
18+
- name: checkout
19+
uses: actions/checkout@v4
20+
- name: install packages
21+
run: apt-get update && apt-get install autoconf build-essential nettle-dev libcap2-bin --yes
22+
- name: bootstrap
23+
run: ./bootstrap.sh
24+
- name: configure
25+
run: ./configure --enable-warnings CXXFLAGS=-std=c++17
26+
- name: make
27+
run: make
28+
- name: make check
29+
run: make check
30+
- name: make distcheck
31+
run: make distcheck CXXFLAGS=-std=c++17
32+
- name: build with hardened build flags
33+
run: |
34+
make clean
35+
eval $(DEB_CXXFLAGS_APPEND=-std=c++17 DEB_BUILD_MAINT_OPTIONS="hardening=+all qa=+all,-canary reproducible=+all" dpkg-buildflags --export=sh)
36+
./configure
37+
make
38+
make check
39+
- name: store the logs as an artifact
40+
if: ${{ always() }}
41+
uses: actions/upload-artifact@v4
42+
with:
43+
path: '**/*.log'
Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
---
12
name: debian 11 bullseye
23

3-
on:
4+
"on":
45
push:
56
branches:
67
- main
@@ -14,29 +15,29 @@ jobs:
1415
container:
1516
image: debian:bullseye-slim
1617
steps:
17-
- name: checkout
18-
uses: actions/checkout@v4
19-
- name: install packages
20-
run: apt-get update && apt-get install autoconf build-essential nettle-dev libcap2-bin --yes
21-
- name: bootstrap
22-
run: ./bootstrap.sh
23-
- name: configure
24-
run: ./configure --enable-warnings CXXFLAGS=-std=c++17
25-
- name: make
26-
run: make
27-
- name: make check
28-
run: make check
29-
- name: make distcheck
30-
run: make distcheck CXXFLAGS=-std=c++17
31-
- name: build with hardened build flags
32-
run: |
33-
make clean
34-
eval $(DEB_CXXFLAGS_APPEND=-std=c++17 DEB_BUILD_MAINT_OPTIONS="hardening=+all qa=+all,-canary reproducible=+all" dpkg-buildflags --export=sh)
35-
./configure
36-
make
37-
make check
38-
- name: store the logs as an artifact
39-
if: ${{ always() }}
40-
uses: actions/upload-artifact@v4
41-
with:
42-
path: '**/*.log'
18+
- name: checkout
19+
uses: actions/checkout@v4
20+
- name: install packages
21+
run: apt-get update && apt-get install autoconf build-essential nettle-dev libcap2-bin --yes
22+
- name: bootstrap
23+
run: ./bootstrap.sh
24+
- name: configure
25+
run: ./configure --enable-warnings CXXFLAGS=-std=c++17
26+
- name: make
27+
run: make
28+
- name: make check
29+
run: make check
30+
- name: make distcheck
31+
run: make distcheck CXXFLAGS=-std=c++17
32+
- name: build with hardened build flags
33+
run: |
34+
make clean
35+
eval $(DEB_CXXFLAGS_APPEND=-std=c++17 DEB_BUILD_MAINT_OPTIONS="hardening=+all qa=+all,-canary reproducible=+all" dpkg-buildflags --export=sh)
36+
./configure
37+
make
38+
make check
39+
- name: store the logs as an artifact
40+
if: ${{ always() }}
41+
uses: actions/upload-artifact@v4
42+
with:
43+
path: '**/*.log'
Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
---
12
name: debian 13 trixie
23

3-
on:
4+
"on":
45
push:
56
branches:
67
- main
@@ -14,29 +15,29 @@ jobs:
1415
container:
1516
image: debian:trixie-slim
1617
steps:
17-
- name: checkout
18-
uses: actions/checkout@v4
19-
- name: install packages
20-
run: apt-get update && apt-get install autoconf build-essential nettle-dev libcap2-bin --yes
21-
- name: bootstrap
22-
run: ./bootstrap.sh
23-
- name: configure
24-
run: ./configure --enable-warnings CXXFLAGS=-std=c++17
25-
- name: make
26-
run: make
27-
- name: make check
28-
run: make check
29-
- name: make distcheck
30-
run: make distcheck CXXFLAGS=-std=c++17
31-
- name: build with hardened build flags
32-
run: |
33-
make clean
34-
eval $(DEB_CXXFLAGS_APPEND=-std=c++17 DEB_BUILD_MAINT_OPTIONS="hardening=+all qa=+all,-canary reproducible=+all" dpkg-buildflags --export=sh)
35-
./configure
36-
make
37-
make check
38-
- name: store the logs as an artifact
39-
if: ${{ always() }}
40-
uses: actions/upload-artifact@v4
41-
with:
42-
path: '**/*.log'
18+
- name: checkout
19+
uses: actions/checkout@v4
20+
- name: install packages
21+
run: apt-get update && apt-get install autoconf build-essential nettle-dev libcap2-bin --yes
22+
- name: bootstrap
23+
run: ./bootstrap.sh
24+
- name: configure
25+
run: ./configure --enable-warnings CXXFLAGS=-std=c++17
26+
- name: make
27+
run: make
28+
- name: make check
29+
run: make check
30+
- name: make distcheck
31+
run: make distcheck CXXFLAGS=-std=c++17
32+
- name: build with hardened build flags
33+
run: |
34+
make clean
35+
eval $(DEB_CXXFLAGS_APPEND=-std=c++17 DEB_BUILD_MAINT_OPTIONS="hardening=+all qa=+all,-canary reproducible=+all" dpkg-buildflags --export=sh)
36+
./configure
37+
make
38+
make check
39+
- name: store the logs as an artifact
40+
if: ${{ always() }}
41+
uses: actions/upload-artifact@v4
42+
with:
43+
path: '**/*.log'

0 commit comments

Comments
 (0)