˝Change: Update gvm-libs image in prod.Dockerfile and build.Dockerfile #121
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and test C | |
on: | |
push: | |
branches: [ main, oldstable, stable ] | |
pull_request: | |
branches: [ main, oldstable, stable ] | |
jobs: | |
c-format-check: | |
name: Check C Source Code Formatting | |
runs-on: 'ubuntu-latest' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Check Source Format | |
run: | | |
clang-format -i -style=file src/*.c | |
git diff --exit-code | |
tests: | |
name: Unit Tests | |
runs-on: 'ubuntu-latest' | |
container: greenbone/boreas-build:unstable | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Configure and Compile boreas | |
run: | | |
mkdir build | |
cd build | |
cmake -DCMAKE_BUILD_TYPE=Debug .. | |
make install | |
scan-build: | |
name: Scan-build with clang | |
runs-on: 'ubuntu-latest' | |
container: greenbone/boreas-build:unstable | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install clang tools | |
run: | | |
apt update | |
apt install --no-install-recommends -y clang clang-format clang-tools | |
rm -rf /var/lib/apt/lists/* | |
- name: Configure and Scan Build boreas | |
run: | | |
cmake -Bbuild -DCMAKE_BUILD_TYPE=Release | |
scan-build -o ~/scan-build-report cmake --build build | |
- name: Upload scan-build report | |
if: failure() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: scan-build-report | |
path: ~/scan-build-report/ | |
retention-days: 7 |