mirror of
https://github.com/optim-enterprises-bv/nDPId.git
synced 2025-10-29 09:22:23 +00:00
Removed CI matrix based jobs.
* Fixed multiple *.deb package upload issue. Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
78
.github/workflows/build.yml
vendored
78
.github/workflows/build.yml
vendored
@@ -22,29 +22,90 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: true
|
fail-fast: true
|
||||||
matrix:
|
matrix:
|
||||||
os: ["ubuntu-latest", "ubuntu-20.04"]
|
|
||||||
ndpid_gcrypt: ["-DNDPI_WITH_GCRYPT=OFF", "-DNDPI_WITH_GCRYPT=ON"]
|
|
||||||
ndpid_zlib: ["-DENABLE_ZLIB=OFF", "-DENABLE_ZLIB=ON"]
|
|
||||||
ndpi_min_version: ["4.8"]
|
|
||||||
include:
|
include:
|
||||||
- compiler: "default-cc"
|
- compiler: "gcc"
|
||||||
os: "ubuntu-latest"
|
os: "ubuntu-latest"
|
||||||
|
ndpid_gcrypt: "-DNDPI_WITH_GCRYPT=OFF"
|
||||||
|
ndpid_zlib: "-DENABLE_ZLIB=ON"
|
||||||
|
sanitizer: "-DENABLE_SANITIZER=OFF -DENABLE_SANITIZER_THREAD=OFF"
|
||||||
|
coverage: "-DENABLE_COVERAGE=OFF"
|
||||||
|
upload: true
|
||||||
|
upload_suffix: ""
|
||||||
|
ndpi_min_version: "4.8"
|
||||||
|
- compiler: "gcc"
|
||||||
|
os: "ubuntu-latest"
|
||||||
|
ndpid_gcrypt: "-DNDPI_WITH_GCRYPT=ON"
|
||||||
|
ndpid_zlib: "-DENABLE_ZLIB=ON"
|
||||||
|
sanitizer: "-DENABLE_SANITIZER=OFF -DENABLE_SANITIZER_THREAD=OFF"
|
||||||
|
coverage: "-DENABLE_COVERAGE=OFF"
|
||||||
|
upload: true
|
||||||
|
upload_suffix: "-host-gcrypt"
|
||||||
|
ndpi_min_version: "4.8"
|
||||||
|
- compiler: "clang"
|
||||||
|
os: "ubuntu-latest"
|
||||||
|
ndpid_gcrypt: "-DNDPI_WITH_GCRYPT=OFF"
|
||||||
|
ndpid_zlib: "-DENABLE_ZLIB=OFF"
|
||||||
|
sanitizer: "-DENABLE_SANITIZER=OFF -DENABLE_SANITIZER_THREAD=OFF"
|
||||||
|
coverage: "-DENABLE_COVERAGE=OFF"
|
||||||
|
upload: true
|
||||||
|
upload_suffix: "-no-zlib"
|
||||||
|
ndpi_min_version: "4.8"
|
||||||
|
- compiler: "gcc"
|
||||||
|
os: "ubuntu-latest"
|
||||||
|
ndpid_gcrypt: "-DNDPI_WITH_GCRYPT=OFF"
|
||||||
|
ndpid_zlib: "-DENABLE_ZLIB=ON"
|
||||||
sanitizer: "-DENABLE_SANITIZER=ON"
|
sanitizer: "-DENABLE_SANITIZER=ON"
|
||||||
coverage: "-DENABLE_COVERAGE=ON"
|
coverage: "-DENABLE_COVERAGE=ON"
|
||||||
|
upload: false
|
||||||
|
ndpi_min_version: "4.8"
|
||||||
|
- compiler: "clang"
|
||||||
|
os: "ubuntu-latest"
|
||||||
|
ndpid_gcrypt: "-DNDPI_WITH_GCRYPT=OFF"
|
||||||
|
ndpid_zlib: "-DENABLE_ZLIB=ON"
|
||||||
|
sanitizer: "-DENABLE_SANITIZER=ON"
|
||||||
|
coverage: "-DENABLE_COVERAGE=ON"
|
||||||
|
upload: false
|
||||||
|
ndpi_min_version: "4.8"
|
||||||
- compiler: "clang-12"
|
- compiler: "clang-12"
|
||||||
os: "ubuntu-latest"
|
os: "ubuntu-latest"
|
||||||
|
ndpid_gcrypt: "-DNDPI_WITH_GCRYPT=OFF"
|
||||||
|
ndpid_zlib: "-DENABLE_ZLIB=ON"
|
||||||
sanitizer: "-DENABLE_SANITIZER_THREAD=ON"
|
sanitizer: "-DENABLE_SANITIZER_THREAD=ON"
|
||||||
coverage: "-DENABLE_COVERAGE=ON"
|
coverage: "-DENABLE_COVERAGE=ON"
|
||||||
|
upload: false
|
||||||
|
ndpi_min_version: "4.8"
|
||||||
- compiler: "gcc-10"
|
- compiler: "gcc-10"
|
||||||
os: "ubuntu-latest"
|
os: "ubuntu-latest"
|
||||||
|
ndpid_gcrypt: "-DNDPI_WITH_GCRYPT=OFF"
|
||||||
|
ndpid_zlib: "-DENABLE_ZLIB=OFF"
|
||||||
sanitizer: "-DENABLE_SANITIZER=ON"
|
sanitizer: "-DENABLE_SANITIZER=ON"
|
||||||
coverage: "-DENABLE_COVERAGE=OFF"
|
coverage: "-DENABLE_COVERAGE=OFF"
|
||||||
|
upload: false
|
||||||
|
ndpi_min_version: "4.8"
|
||||||
- compiler: "gcc-7"
|
- compiler: "gcc-7"
|
||||||
os: "ubuntu-20.04"
|
os: "ubuntu-20.04"
|
||||||
|
ndpid_gcrypt: "-DNDPI_WITH_GCRYPT=OFF"
|
||||||
|
ndpid_zlib: "-DENABLE_ZLIB=ON"
|
||||||
sanitizer: "-DENABLE_SANITIZER=ON"
|
sanitizer: "-DENABLE_SANITIZER=ON"
|
||||||
coverage: "-DENABLE_COVERAGE=OFF"
|
coverage: "-DENABLE_COVERAGE=OFF"
|
||||||
|
upload: false
|
||||||
|
ndpi_min_version: "4.8"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Print Matrix
|
||||||
|
run: |
|
||||||
|
echo '----------------------------------------'
|
||||||
|
echo '| OS.......: ${{ matrix.os }}'
|
||||||
|
echo '| CC.......: ${{ matrix.compiler }}'
|
||||||
|
echo '|---------------------------------------'
|
||||||
|
echo '| GCRYPT...: ${{ matrix.ndpid_gcrypt }}'
|
||||||
|
echo '| ZLIB.....: ${{ matrix.ndpid_zlib }}'
|
||||||
|
echo '|---------------------------------------'
|
||||||
|
echo '| SANITIZER: ${{ matrix.sanitizer }}'
|
||||||
|
echo '| COVERAGE.: ${{ matrix.coverage }}'
|
||||||
|
echo '|---------------------------------------'
|
||||||
|
echo '| UPLOAD...: ${{ matrix.upload }}'
|
||||||
|
echo '----------------------------------------'
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: false
|
submodules: false
|
||||||
@@ -97,18 +158,20 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
make -C ./build coverage
|
make -C ./build coverage
|
||||||
- name: Dist
|
- name: Dist
|
||||||
|
if: matrix.upload == false
|
||||||
run: |
|
run: |
|
||||||
make -C ./build dist
|
make -C ./build dist
|
||||||
- name: CPack DEB
|
- name: CPack DEB
|
||||||
run: |
|
run: |
|
||||||
cd ./build && cpack -G DEB && sudo dpkg -i nDPId-*.deb && cd ..
|
cd ./build && cpack -G DEB && sudo dpkg -i nDPId-*.deb && cd ..
|
||||||
- name: Upload DEB
|
- name: Upload DEB
|
||||||
|
if: matrix.upload
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: nDPId-debian-packages
|
name: nDPId-debian-packages_${{ matrix.compiler }}${{ matrix.upload_suffix }}
|
||||||
path: build/*.deb
|
path: build/*.deb
|
||||||
- name: systemd test
|
- name: systemd test
|
||||||
if: startsWith(matrix.os, 'ubuntu-latest') && startsWith(matrix.compiler, 'default-cc')
|
if: startsWith(matrix.os, 'ubuntu-latest') && startsWith(matrix.compiler, 'gcc')
|
||||||
run: |
|
run: |
|
||||||
sudo systemctl daemon-reload
|
sudo systemctl daemon-reload
|
||||||
sudo systemctl enable ndpid@lo
|
sudo systemctl enable ndpid@lo
|
||||||
@@ -116,6 +179,7 @@ jobs:
|
|||||||
sudo systemctl status ndpisrvd.service ndpid@lo.service
|
sudo systemctl status ndpisrvd.service ndpid@lo.service
|
||||||
sudo systemctl show ndpisrvd.service ndpid@lo.service -p SubState,ActiveState
|
sudo systemctl show ndpisrvd.service ndpid@lo.service -p SubState,ActiveState
|
||||||
- name: Build against libnDPI-${{ matrix.ndpi_min_version }}
|
- name: Build against libnDPI-${{ matrix.ndpi_min_version }}
|
||||||
|
if: matrix.upload == false
|
||||||
run: |
|
run: |
|
||||||
mkdir build-local-ndpi && cd build-local-ndpi
|
mkdir build-local-ndpi && cd build-local-ndpi
|
||||||
WGET_RET=0
|
WGET_RET=0
|
||||||
|
|||||||
Reference in New Issue
Block a user