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
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:
58
.github/workflows/c-cpp.yml
vendored
58
.github/workflows/c-cpp.yml
vendored
@@ -12,20 +12,23 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: debian:bookworm
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Install build dependencies
|
- name: Install build dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
apt-get update
|
||||||
sudo apt-get install -y \
|
apt-get install -y \
|
||||||
build-essential \
|
build-essential \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
libmagic-dev \
|
libmagic-dev \
|
||||||
libnghttp2-dev \
|
libnghttp2-dev \
|
||||||
pkg-config
|
pkg-config \
|
||||||
|
git
|
||||||
|
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Build project
|
- name: Build project
|
||||||
run: |
|
run: |
|
||||||
@@ -41,15 +44,24 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build
|
needs: build
|
||||||
|
container:
|
||||||
|
image: debian:bookworm
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
apt-get update
|
||||||
sudo apt-get install -y build-essential
|
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
|
- name: Build again for testing
|
||||||
run: |
|
run: |
|
||||||
@@ -71,15 +83,17 @@ jobs:
|
|||||||
|
|
||||||
code-quality:
|
code-quality:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: debian:bookworm
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Install code quality tools
|
- name: Install code quality tools
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
apt-get update
|
||||||
sudo apt-get install -y cppcheck clang-format
|
apt-get install -y cppcheck clang-format git
|
||||||
|
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Run Cppcheck
|
- name: Run Cppcheck
|
||||||
run: |
|
run: |
|
||||||
@@ -107,15 +121,17 @@ jobs:
|
|||||||
|
|
||||||
security-scan:
|
security-scan:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: debian:bookworm
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Install security tools
|
- name: Install security tools
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
apt-get update
|
||||||
sudo apt-get install -y flawfinder cppcheck
|
apt-get install -y flawfinder cppcheck git
|
||||||
|
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Run Flawfinder
|
- name: Run Flawfinder
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
32
.github/workflows/ci.yml
vendored
32
.github/workflows/ci.yml
vendored
@@ -12,12 +12,14 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: debian:bookworm
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
apt-get update
|
||||||
sudo apt-get install -y build-essential libssl-dev libmagic-dev libnghttp2-dev pkg-config
|
apt-get install -y build-essential libssl-dev libmagic-dev libnghttp2-dev pkg-config git
|
||||||
|
- uses: actions/checkout@v4
|
||||||
- name: Build project
|
- name: Build project
|
||||||
run: make clean && make
|
run: make clean && make
|
||||||
- name: Upload build artifacts
|
- name: Upload build artifacts
|
||||||
@@ -29,12 +31,14 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build
|
needs: build
|
||||||
|
container:
|
||||||
|
image: debian:bookworm
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
apt-get update
|
||||||
sudo apt-get install -y build-essential libssl-dev libmagic-dev libnghttp2-dev pkg-config
|
apt-get install -y build-essential libssl-dev libmagic-dev libnghttp2-dev pkg-config git file
|
||||||
|
- uses: actions/checkout@v4
|
||||||
- name: Build and run tests
|
- name: Build and run tests
|
||||||
run: |
|
run: |
|
||||||
make clean && make
|
make clean && make
|
||||||
@@ -46,12 +50,14 @@ jobs:
|
|||||||
|
|
||||||
security-scan:
|
security-scan:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: debian:bookworm
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: Install security tools
|
- name: Install security tools
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
apt-get update
|
||||||
sudo apt-get install -y cppcheck flawfinder
|
apt-get install -y cppcheck flawfinder git
|
||||||
|
- uses: actions/checkout@v4
|
||||||
- name: Run Flawfinder
|
- name: Run Flawfinder
|
||||||
run: |
|
run: |
|
||||||
flawfinder --minlevel=1 --html --context src/ > flawfinder-report.html || true
|
flawfinder --minlevel=1 --html --context src/ > flawfinder-report.html || true
|
||||||
@@ -63,12 +69,14 @@ jobs:
|
|||||||
|
|
||||||
code-quality:
|
code-quality:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: debian:bookworm
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: Install code quality tools
|
- name: Install code quality tools
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
apt-get update
|
||||||
sudo apt-get install -y cppcheck clang-format clang-tidy
|
apt-get install -y cppcheck clang-format clang-tidy git
|
||||||
|
- uses: actions/checkout@v4
|
||||||
- name: Run Cppcheck
|
- name: Run Cppcheck
|
||||||
run: |
|
run: |
|
||||||
cppcheck --enable=all --inconclusive --error-exitcode=0 \
|
cppcheck --enable=all --inconclusive --error-exitcode=0 \
|
||||||
|
|||||||
Reference in New Issue
Block a user