fix: simplify CI configuration by removing unnecessary container images and installation steps
Some checks failed
C/C++ CI / build (push) Failing after 30s
C/C++ CI / test (push) Has been skipped
C/C++ CI / code-quality (push) Failing after 31s
C/C++ CI / security-scan (push) Failing after 17s
CI Pipeline / build (push) Failing after 17s
CI Pipeline / test (push) Has been skipped
CI Pipeline / security-scan (push) Failing after 13s
CI Pipeline / code-quality (push) Failing after 30s
CI Pipeline / docker-build (push) Failing after 1m0s
Some checks failed
C/C++ CI / build (push) Failing after 30s
C/C++ CI / test (push) Has been skipped
C/C++ CI / code-quality (push) Failing after 31s
C/C++ CI / security-scan (push) Failing after 17s
CI Pipeline / build (push) Failing after 17s
CI Pipeline / test (push) Has been skipped
CI Pipeline / security-scan (push) Failing after 13s
CI Pipeline / code-quality (push) Failing after 30s
CI Pipeline / docker-build (push) Failing after 1m0s
This commit is contained in:
54
.github/workflows/c-cpp.yml
vendored
54
.github/workflows/c-cpp.yml
vendored
@@ -12,27 +12,21 @@ on:
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: debian:bookworm
|
||||
|
||||
steps:
|
||||
- name: Install build dependencies
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y \
|
||||
build-essential \
|
||||
libssl-dev \
|
||||
libmagic-dev \
|
||||
libnghttp2-dev \
|
||||
pkg-config \
|
||||
git
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Verify build tools
|
||||
run: |
|
||||
echo "Checking for required build tools..."
|
||||
which gcc || echo "WARNING: gcc not found"
|
||||
which make || echo "WARNING: make not found"
|
||||
pkg-config --version || echo "WARNING: pkg-config not found"
|
||||
|
||||
- name: Build project
|
||||
run: |
|
||||
make clean
|
||||
make clean || true
|
||||
make
|
||||
|
||||
- name: Upload build artifact
|
||||
@@ -44,28 +38,14 @@ jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
container:
|
||||
image: debian:bookworm
|
||||
|
||||
steps:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
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
|
||||
- name: Build for testing
|
||||
run: |
|
||||
make clean
|
||||
make clean || true
|
||||
make
|
||||
|
||||
- name: Verify ELF executable
|
||||
@@ -83,15 +63,8 @@ jobs:
|
||||
|
||||
code-quality:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: debian:bookworm
|
||||
|
||||
steps:
|
||||
- name: Install code quality tools
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y cppcheck clang-format git
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
@@ -121,15 +94,8 @@ jobs:
|
||||
|
||||
security-scan:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: debian:bookworm
|
||||
|
||||
steps:
|
||||
- name: Install security tools
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y flawfinder cppcheck git
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
|
||||
26
.github/workflows/ci.yml
vendored
26
.github/workflows/ci.yml
vendored
@@ -12,16 +12,10 @@ on:
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: debian:bookworm
|
||||
steps:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y build-essential libssl-dev libmagic-dev libnghttp2-dev pkg-config git
|
||||
- uses: actions/checkout@v4
|
||||
- name: Build project
|
||||
run: make clean && make
|
||||
run: make clean && make || make
|
||||
- name: Upload build artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
@@ -31,13 +25,7 @@ jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
container:
|
||||
image: debian:bookworm
|
||||
steps:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
apt-get update
|
||||
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
|
||||
run: |
|
||||
@@ -50,13 +38,7 @@ jobs:
|
||||
|
||||
security-scan:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: debian:bookworm
|
||||
steps:
|
||||
- name: Install security tools
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y cppcheck flawfinder git
|
||||
- uses: actions/checkout@v4
|
||||
- name: Run Flawfinder
|
||||
run: |
|
||||
@@ -69,13 +51,7 @@ jobs:
|
||||
|
||||
code-quality:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: debian:bookworm
|
||||
steps:
|
||||
- name: Install code quality tools
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y cppcheck clang-format clang-tidy git
|
||||
- uses: actions/checkout@v4
|
||||
- name: Run Cppcheck
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user