fix: streamline CI workflow by removing unnecessary sudo commands and adding missing dependencies
Some checks failed
C/C++ CI / build (push) Failing after 1m9s
C/C++ CI / test (push) Has been skipped
C/C++ CI / code-quality (push) Failing after 1m6s
C/C++ CI / security-scan (push) Failing after 1m55s
CI Pipeline / build (push) Failing after 1m20s
CI Pipeline / test (push) Has been skipped
CI Pipeline / code-quality (push) Has been cancelled
CI Pipeline / docker-build (push) Has been cancelled
CI Pipeline / security-scan (push) Has been cancelled

This commit is contained in:
2025-12-20 23:02:56 +01:00
parent 812636caf8
commit dca98cb3ec
2 changed files with 57 additions and 33 deletions

View File

@@ -12,20 +12,23 @@ on:
jobs:
build:
runs-on: ubuntu-latest
container:
image: debian:bookworm
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
apt-get update
apt-get install -y \
build-essential \
libssl-dev \
libmagic-dev \
libnghttp2-dev \
pkg-config
pkg-config \
git
- name: Checkout repository
uses: actions/checkout@v4
- name: Build project
run: |
@@ -41,15 +44,24 @@ jobs:
test:
runs-on: ubuntu-latest
needs: build
container:
image: debian:bookworm
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential
apt-get update
apt-get install -y \
build-essential \
libssl-dev \
libmagic-dev \
libnghttp2-dev \
pkg-config \
git \
file
- name: Checkout repository
uses: actions/checkout@v4
- name: Build again for testing
run: |
@@ -71,15 +83,17 @@ jobs:
code-quality:
runs-on: ubuntu-latest
container:
image: debian:bookworm
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install code quality tools
run: |
sudo apt-get update
sudo apt-get install -y cppcheck clang-format
apt-get update
apt-get install -y cppcheck clang-format git
- name: Checkout repository
uses: actions/checkout@v4
- name: Run Cppcheck
run: |
@@ -107,15 +121,17 @@ jobs:
security-scan:
runs-on: ubuntu-latest
container:
image: debian:bookworm
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install security tools
run: |
sudo apt-get update
sudo apt-get install -y flawfinder cppcheck
apt-get update
apt-get install -y flawfinder cppcheck git
- name: Checkout repository
uses: actions/checkout@v4
- name: Run Flawfinder
run: |