Some checks failed
Bigfoot / Build & Test Debug with ./ConanProfiles/clang (Unity Build: OFF) (push) Successful in 7m11s
Bigfoot / Build & Test Debug with ./ConanProfiles/clang (Unity Build: ON) (push) Successful in 5m15s
Bigfoot / Build & Test Debug with ./ConanProfiles/clang_asan (Unity Build: OFF) (push) Successful in 5m47s
Bigfoot / Build & Test Debug with ./ConanProfiles/clang_asan (Unity Build: ON) (push) Successful in 5m40s
Bigfoot / Build & Test RelWithDebInfo with ./ConanProfiles/clang (Unity Build: OFF) (push) Successful in 6m0s
Bigfoot / Build & Test RelWithDebInfo with ./ConanProfiles/clang (Unity Build: ON) (push) Successful in 5m59s
Bigfoot / Build & Test RelWithDebInfo with ./ConanProfiles/clang_asan (Unity Build: OFF) (push) Successful in 7m7s
Bigfoot / Build & Test RelWithDebInfo with ./ConanProfiles/clang_asan (Unity Build: ON) (push) Successful in 6m57s
Bigfoot / Build & Test Release with ./ConanProfiles/clang (Unity Build: OFF) (push) Successful in 6m2s
Bigfoot / Build & Test Release with ./ConanProfiles/clang (Unity Build: ON) (push) Successful in 6m8s
Bigfoot / Build & Test Release with ./ConanProfiles/clang_asan (Unity Build: OFF) (push) Successful in 6m41s
Bigfoot / Build & Test Release with ./ConanProfiles/clang_asan (Unity Build: ON) (push) Successful in 6m40s
Bigfoot / Clang Format Checks (push) Failing after 10s
62 lines
2.1 KiB
YAML
62 lines
2.1 KiB
YAML
name: Bigfoot
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- Development
|
|
|
|
jobs:
|
|
build-and-test:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 120
|
|
container:
|
|
image: git.romainboullard.com/bigfootdev/linuxbigfootbuilder:main
|
|
volumes:
|
|
- /srv/romainboullard.com/caches/ccache:/ccache
|
|
env:
|
|
CCACHE_DIR: /ccache
|
|
CCACHE_MAXSIZE: 10G
|
|
CCACHE_BASEDIR: /root/.conan2
|
|
CCACHE_COMPILERCHECK: "%compiler% -dumpversion"
|
|
name: "Sonarqube"
|
|
steps:
|
|
- name: Install Node.js
|
|
run: apt-get update && apt-get install -y nodejs
|
|
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 0
|
|
submodules: recursive
|
|
|
|
- name: Reset ccache stats
|
|
run: ccache --zero-stats
|
|
|
|
- name: Build
|
|
run: |
|
|
conan install . --remote=bigfootpackages -pr:h=./ConanProfiles/clang_coverage -pr:b=./ConanProfiles/Tools/clang --build=* -s build_type=Debug -o bigfoot/*:build_tests=True -o bigfoot/*:build_benchmarks=True -o bigfoot/*:tracy=False -o bigfoot/*:build_tools=True -o bigfoot/*:vulkan=True
|
|
. ./build/Debug/generators/conanbuild.sh
|
|
cmake -S . -B ./build/Debug --toolchain ./build/Debug/generators/conan_toolchain.cmake -DCMAKE_BUILD_TYPE=Debug -G "Ninja"
|
|
cmake --build build/Debug --parallel $(nproc)
|
|
. ./build/Debug/generators/deactivate_conanbuild.sh
|
|
|
|
- name: Show ccache stats
|
|
run: ccache --show-stats
|
|
|
|
- name: Clang-Tidy
|
|
run: run-clang-tidy -p ./build/Debug/ >> tidy_result.txt
|
|
|
|
- name: Infer
|
|
run: infer run --compilation-database build/Debug/compile_commands.json
|
|
|
|
- name: SonarQube Scan
|
|
if: github.head_ref == 'main' || github.ref_name == 'main'
|
|
uses: SonarSource/sonarqube-scan-action@v7.0.0
|
|
with:
|
|
args: >
|
|
-Dsonar.cxx.jsonCompilationDatabase=./build/Debug/compile_commands.json
|
|
-Dsonar.verbose=true
|
|
env:
|
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
|
SONAR_HOST_URL: ${{ secrets.SONAR_HOST }} |