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:
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user