Skip to content

Commit

Permalink
fix yamllint in workflows
Browse files Browse the repository at this point in the history
add all files to do_yamllint.sh

Signed-off-by: Robert Marklund <[email protected]>
  • Loading branch information
trollkarlen committed Jan 23, 2025
1 parent a3d1095 commit 8a0382d
Show file tree
Hide file tree
Showing 21 changed files with 446 additions and 399 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/clang18.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
name: clang 18

on:
"on":
push:
branches:
- main
Expand All @@ -14,21 +15,20 @@ jobs:
runs-on: ubuntu-24.04

steps:
- name: checkout
uses: actions/checkout@v4
- name: install packages
run: sudo apt install build-essential nettle-dev time clang-18
- name: bootstrap
run: ./bootstrap.sh
- name: configure
run: ./configure CXX=clang++-18
- name: build
run: make
- name: check
run: make check
- name: store the logs as an artifact
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
path: '**/*.log'

- name: checkout
uses: actions/checkout@v4
- name: install packages
run: sudo apt install build-essential nettle-dev time clang-18
- name: bootstrap
run: ./bootstrap.sh
- name: configure
run: ./configure CXX=clang++-18
- name: build
run: make
- name: check
run: make check
- name: store the logs as an artifact
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
path: '**/*.log'
60 changes: 31 additions & 29 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
Expand All @@ -11,12 +12,12 @@
#
name: "CodeQL"

on:
"on":
push:
branches: [ "main", "devel" ]
branches: ["main", "devel"]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main", "devel" ]
branches: ["main", "devel"]
schedule:
- cron: '39 4 * * 0'

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

steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Checkout repository
uses: actions/checkout@v4

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

# 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
# queries: security-extended,security-and-quality
- name: Build
run: |
./bootstrap.sh
./configure
make
# 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
# queries: security-extended,security-and-quality
- name: Build
run: |
./bootstrap.sh
./configure
make
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"
26 changes: 13 additions & 13 deletions .github/workflows/cppcheck.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
name: cppcheck

on:
"on":
push:
branches:
- main
Expand All @@ -14,15 +15,14 @@ jobs:
runs-on: ubuntu-20.04

steps:
- name: checkout
uses: actions/checkout@v4
- name: install packages
run: sudo apt install cppcheck
- name: run cppcheck
run: cppcheck/run_cppcheck.sh
- name: store the cppcheck output as an artifact
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
path: 'cppcheck/out/*'

- name: checkout
uses: actions/checkout@v4
- name: install packages
run: sudo apt install cppcheck
- name: run cppcheck
run: cppcheck/run_cppcheck.sh
- name: store the cppcheck output as an artifact
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
path: 'cppcheck/out/*'
55 changes: 28 additions & 27 deletions .github/workflows/debian-bookworm.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
name: debian 12 bookworm

on:
"on":
push:
branches:
- main
Expand All @@ -14,29 +15,29 @@ jobs:
container:
image: debian:bookworm-slim
steps:
- name: checkout
uses: actions/checkout@v4
- name: install packages
run: apt-get update && apt-get install autoconf build-essential nettle-dev libcap2-bin --yes
- name: bootstrap
run: ./bootstrap.sh
- name: configure
run: ./configure --enable-warnings CXXFLAGS=-std=c++17
- name: make
run: make
- name: make check
run: make check
- name: make distcheck
run: make distcheck CXXFLAGS=-std=c++17
- name: build with hardened build flags
run: |
make clean
eval $(DEB_CXXFLAGS_APPEND=-std=c++17 DEB_BUILD_MAINT_OPTIONS="hardening=+all qa=+all,-canary reproducible=+all" dpkg-buildflags --export=sh)
./configure
make
make check
- name: store the logs as an artifact
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
path: '**/*.log'
- name: checkout
uses: actions/checkout@v4
- name: install packages
run: apt-get update && apt-get install autoconf build-essential nettle-dev libcap2-bin --yes
- name: bootstrap
run: ./bootstrap.sh
- name: configure
run: ./configure --enable-warnings CXXFLAGS=-std=c++17
- name: make
run: make
- name: make check
run: make check
- name: make distcheck
run: make distcheck CXXFLAGS=-std=c++17
- name: build with hardened build flags
run: |
make clean
eval $(DEB_CXXFLAGS_APPEND=-std=c++17 DEB_BUILD_MAINT_OPTIONS="hardening=+all qa=+all,-canary reproducible=+all" dpkg-buildflags --export=sh)
./configure
make
make check
- name: store the logs as an artifact
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
path: '**/*.log'
55 changes: 28 additions & 27 deletions .github/workflows/debian-bullseye.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
name: debian 11 bullseye

on:
"on":
push:
branches:
- main
Expand All @@ -14,29 +15,29 @@ jobs:
container:
image: debian:bullseye-slim
steps:
- name: checkout
uses: actions/checkout@v4
- name: install packages
run: apt-get update && apt-get install autoconf build-essential nettle-dev libcap2-bin --yes
- name: bootstrap
run: ./bootstrap.sh
- name: configure
run: ./configure --enable-warnings CXXFLAGS=-std=c++17
- name: make
run: make
- name: make check
run: make check
- name: make distcheck
run: make distcheck CXXFLAGS=-std=c++17
- name: build with hardened build flags
run: |
make clean
eval $(DEB_CXXFLAGS_APPEND=-std=c++17 DEB_BUILD_MAINT_OPTIONS="hardening=+all qa=+all,-canary reproducible=+all" dpkg-buildflags --export=sh)
./configure
make
make check
- name: store the logs as an artifact
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
path: '**/*.log'
- name: checkout
uses: actions/checkout@v4
- name: install packages
run: apt-get update && apt-get install autoconf build-essential nettle-dev libcap2-bin --yes
- name: bootstrap
run: ./bootstrap.sh
- name: configure
run: ./configure --enable-warnings CXXFLAGS=-std=c++17
- name: make
run: make
- name: make check
run: make check
- name: make distcheck
run: make distcheck CXXFLAGS=-std=c++17
- name: build with hardened build flags
run: |
make clean
eval $(DEB_CXXFLAGS_APPEND=-std=c++17 DEB_BUILD_MAINT_OPTIONS="hardening=+all qa=+all,-canary reproducible=+all" dpkg-buildflags --export=sh)
./configure
make
make check
- name: store the logs as an artifact
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
path: '**/*.log'
55 changes: 28 additions & 27 deletions .github/workflows/debian-trixie.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
name: debian 13 trixie

on:
"on":
push:
branches:
- main
Expand All @@ -14,29 +15,29 @@ jobs:
container:
image: debian:trixie-slim
steps:
- name: checkout
uses: actions/checkout@v4
- name: install packages
run: apt-get update && apt-get install autoconf build-essential nettle-dev libcap2-bin --yes
- name: bootstrap
run: ./bootstrap.sh
- name: configure
run: ./configure --enable-warnings CXXFLAGS=-std=c++17
- name: make
run: make
- name: make check
run: make check
- name: make distcheck
run: make distcheck CXXFLAGS=-std=c++17
- name: build with hardened build flags
run: |
make clean
eval $(DEB_CXXFLAGS_APPEND=-std=c++17 DEB_BUILD_MAINT_OPTIONS="hardening=+all qa=+all,-canary reproducible=+all" dpkg-buildflags --export=sh)
./configure
make
make check
- name: store the logs as an artifact
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
path: '**/*.log'
- name: checkout
uses: actions/checkout@v4
- name: install packages
run: apt-get update && apt-get install autoconf build-essential nettle-dev libcap2-bin --yes
- name: bootstrap
run: ./bootstrap.sh
- name: configure
run: ./configure --enable-warnings CXXFLAGS=-std=c++17
- name: make
run: make
- name: make check
run: make check
- name: make distcheck
run: make distcheck CXXFLAGS=-std=c++17
- name: build with hardened build flags
run: |
make clean
eval $(DEB_CXXFLAGS_APPEND=-std=c++17 DEB_BUILD_MAINT_OPTIONS="hardening=+all qa=+all,-canary reproducible=+all" dpkg-buildflags --export=sh)
./configure
make
make check
- name: store the logs as an artifact
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
path: '**/*.log'
Loading

0 comments on commit 8a0382d

Please sign in to comment.