fix: update CI configuration to include environment variables for include and library paths
Some checks failed
C/C++ CI / build (push) Failing after 18s
C/C++ CI / test (push) Has been skipped
C/C++ CI / code-quality (push) Failing after 43s
C/C++ CI / security-scan (push) Failing after 22s
CI Pipeline / build (push) Failing after 20s
CI Pipeline / test (push) Has been skipped
CI Pipeline / security-scan (push) Failing after 12s
CI Pipeline / code-quality (push) Failing after 31s
CI Pipeline / docker-build (push) Failing after 59s

This commit is contained in:
2025-12-20 23:16:19 +01:00
parent 71a397f0d6
commit 24b361f5a6
2 changed files with 23 additions and 6 deletions

View File

@@ -12,22 +12,29 @@ on:
jobs:
build:
runs-on: ubuntu-latest
env:
C_INCLUDE_PATH: /usr/include:/usr/local/include
LIBRARY_PATH: /usr/lib:/usr/local/lib:/usr/lib/x86_64-linux-gnu
LD_LIBRARY_PATH: /usr/lib:/usr/local/lib:/usr/lib/x86_64-linux-gnu
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Verify build tools
- name: Verify build environment
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"
echo "Include path: $C_INCLUDE_PATH"
echo "Looking for magic.h..."
ls -la /usr/include/magic.h || echo "magic.h not in /usr/include"
gcc -E -x c - -v < /dev/null 2>&1 | grep "include"
- name: Build project
run: |
make clean || true
make
make INCLUDES="-I/usr/include -I/usr/local/include"
- name: Upload build artifact
uses: actions/upload-artifact@v4
@@ -38,6 +45,10 @@ jobs:
test:
runs-on: ubuntu-latest
needs: build
env:
C_INCLUDE_PATH: /usr/include:/usr/local/include
LIBRARY_PATH: /usr/lib:/usr/local/lib:/usr/lib/x86_64-linux-gnu
LD_LIBRARY_PATH: /usr/lib:/usr/local/lib:/usr/lib/x86_64-linux-gnu
steps:
- name: Checkout repository
@@ -46,7 +57,7 @@ jobs:
- name: Build for testing
run: |
make clean || true
make
make INCLUDES="-I/usr/include -I/usr/local/include"
- name: Verify ELF executable
run: |

View File

@@ -12,10 +12,13 @@ on:
jobs:
build:
runs-on: ubuntu-latest
env:
C_INCLUDE_PATH: /usr/include:/usr/local/include
LIBRARY_PATH: /usr/lib:/usr/local/lib:/usr/lib/x86_64-linux-gnu
steps:
- uses: actions/checkout@v4
- name: Build project
run: make clean && make || make
run: make clean && make INCLUDES="-I/usr/include -I/usr/local/include" || make INCLUDES="-I/usr/include -I/usr/local/include"
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
@@ -25,11 +28,14 @@ jobs:
test:
runs-on: ubuntu-latest
needs: build
env:
C_INCLUDE_PATH: /usr/include:/usr/local/include
LIBRARY_PATH: /usr/lib:/usr/local/lib:/usr/lib/x86_64-linux-gnu
steps:
- uses: actions/checkout@v4
- name: Build and run tests
run: |
make clean && make
make clean && make INCLUDES="-I/usr/include -I/usr/local/include"
# Verify the binary was created
test -f server && echo "✓ Server binary built successfully"
# Basic smoke tests - verify it's a valid ELF executable