diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 8426299..4563f0a 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 53f9077..f2faa6e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: |