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
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:
19
.github/workflows/c-cpp.yml
vendored
19
.github/workflows/c-cpp.yml
vendored
@@ -12,22 +12,29 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
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:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Verify build tools
|
- name: Verify build environment
|
||||||
run: |
|
run: |
|
||||||
echo "Checking for required build tools..."
|
echo "Checking for required build tools..."
|
||||||
which gcc || echo "WARNING: gcc not found"
|
which gcc || echo "WARNING: gcc not found"
|
||||||
which make || echo "WARNING: make 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
|
- name: Build project
|
||||||
run: |
|
run: |
|
||||||
make clean || true
|
make clean || true
|
||||||
make
|
make INCLUDES="-I/usr/include -I/usr/local/include"
|
||||||
|
|
||||||
- name: Upload build artifact
|
- name: Upload build artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
@@ -38,6 +45,10 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build
|
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:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
@@ -46,7 +57,7 @@ jobs:
|
|||||||
- name: Build for testing
|
- name: Build for testing
|
||||||
run: |
|
run: |
|
||||||
make clean || true
|
make clean || true
|
||||||
make
|
make INCLUDES="-I/usr/include -I/usr/local/include"
|
||||||
|
|
||||||
- name: Verify ELF executable
|
- name: Verify ELF executable
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
@@ -12,10 +12,13 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
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:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Build project
|
- 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
|
- name: Upload build artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
@@ -25,11 +28,14 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build
|
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:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Build and run tests
|
- name: Build and run tests
|
||||||
run: |
|
run: |
|
||||||
make clean && make
|
make clean && make INCLUDES="-I/usr/include -I/usr/local/include"
|
||||||
# Verify the binary was created
|
# Verify the binary was created
|
||||||
test -f server && echo "✓ Server binary built successfully"
|
test -f server && echo "✓ Server binary built successfully"
|
||||||
# Basic smoke tests - verify it's a valid ELF executable
|
# Basic smoke tests - verify it's a valid ELF executable
|
||||||
|
|||||||
Reference in New Issue
Block a user