CI
Some checks failed
Bin2CPP / Build & Test Debug with ./ConanProfiles/clang (Unity Build: ON) (push) Failing after 4m10s
Bin2CPP / Clang Format Checks (push) Has been cancelled
Bin2CPP / Build & Test Debug with ./ConanProfiles/clang_asan (Unity Build: ON) (push) Has been cancelled
Bin2CPP / Build & Test RelWithDebInfo with ./ConanProfiles/clang_asan (Unity Build: OFF) (push) Has been cancelled
Bin2CPP / Build & Test RelWithDebInfo with ./ConanProfiles/clang_asan (Unity Build: ON) (push) Has been cancelled
Bin2CPP / Build & Test Release with ./ConanProfiles/clang (Unity Build: OFF) (push) Has been cancelled
Bin2CPP / Build & Test Release with ./ConanProfiles/clang (Unity Build: ON) (push) Has been cancelled
Bin2CPP / Build & Test Debug with ./ConanProfiles/clang_asan (Unity Build: OFF) (push) Has been cancelled
Bin2CPP / Build & Test Debug with ./ConanProfiles/clang (Unity Build: OFF) (push) Failing after 4m15s
Bin2CPP / Build & Test RelWithDebInfo with ./ConanProfiles/clang (Unity Build: OFF) (push) Has been cancelled
Bin2CPP / Build & Test RelWithDebInfo with ./ConanProfiles/clang (Unity Build: ON) (push) Has been cancelled
Bin2CPP / Build & Test Release with ./ConanProfiles/clang_asan (Unity Build: OFF) (push) Has been cancelled
Bin2CPP / Build & Test Release with ./ConanProfiles/clang_asan (Unity Build: ON) (push) Has been cancelled
Conan Packaging / Package Bin2CPP/1.0.0 (push) Has been cancelled
Bin2CPP / Sonarqube (push) Has been cancelled
Some checks failed
Bin2CPP / Build & Test Debug with ./ConanProfiles/clang (Unity Build: ON) (push) Failing after 4m10s
Bin2CPP / Clang Format Checks (push) Has been cancelled
Bin2CPP / Build & Test Debug with ./ConanProfiles/clang_asan (Unity Build: ON) (push) Has been cancelled
Bin2CPP / Build & Test RelWithDebInfo with ./ConanProfiles/clang_asan (Unity Build: OFF) (push) Has been cancelled
Bin2CPP / Build & Test RelWithDebInfo with ./ConanProfiles/clang_asan (Unity Build: ON) (push) Has been cancelled
Bin2CPP / Build & Test Release with ./ConanProfiles/clang (Unity Build: OFF) (push) Has been cancelled
Bin2CPP / Build & Test Release with ./ConanProfiles/clang (Unity Build: ON) (push) Has been cancelled
Bin2CPP / Build & Test Debug with ./ConanProfiles/clang_asan (Unity Build: OFF) (push) Has been cancelled
Bin2CPP / Build & Test Debug with ./ConanProfiles/clang (Unity Build: OFF) (push) Failing after 4m15s
Bin2CPP / Build & Test RelWithDebInfo with ./ConanProfiles/clang (Unity Build: OFF) (push) Has been cancelled
Bin2CPP / Build & Test RelWithDebInfo with ./ConanProfiles/clang (Unity Build: ON) (push) Has been cancelled
Bin2CPP / Build & Test Release with ./ConanProfiles/clang_asan (Unity Build: OFF) (push) Has been cancelled
Bin2CPP / Build & Test Release with ./ConanProfiles/clang_asan (Unity Build: ON) (push) Has been cancelled
Conan Packaging / Package Bin2CPP/1.0.0 (push) Has been cancelled
Bin2CPP / Sonarqube (push) Has been cancelled
This commit is contained in:
@@ -29,9 +29,11 @@ jobs:
|
|||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
conan install . --remote=bigfootpackages -pr:h=${{ matrix.conan_profile }} -pr:b=${{ matrix.conan_profile }} --build=missing -s build_type=${{ matrix.build_type }} -o bin2cpp/*:build_tests=True
|
conan install . --remote=bigfootpackages -pr:h=${{ matrix.conan_profile }} -pr:b=./ConanProfiles/Tools/clang --build=missing -s:h build_type=${{ matrix.build_type }}
|
||||||
|
source ./build/${{ matrix.build_type }}/generators/conanbuild.sh
|
||||||
cmake -S . -B ./build/${{ matrix.build_type }} --toolchain ./build/${{ matrix.build_type }}/generators/conan_toolchain.cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_UNITY_BUILD=${{ matrix.unity_build }} -G "Ninja"
|
cmake -S . -B ./build/${{ matrix.build_type }} --toolchain ./build/${{ matrix.build_type }}/generators/conan_toolchain.cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_UNITY_BUILD=${{ matrix.unity_build }} -G "Ninja"
|
||||||
cmake --build build/${{ matrix.build_type }} --parallel $(nproc)
|
cmake --build build/${{ matrix.build_type }} --parallel $(nproc)
|
||||||
|
source ./build/${{ matrix.build_type }}/generators/deactivate_conanbuild.sh
|
||||||
|
|
||||||
- name: Unit Tests
|
- name: Unit Tests
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ jobs:
|
|||||||
--version=1.0.0 \
|
--version=1.0.0 \
|
||||||
--user=bigfootdev \
|
--user=bigfootdev \
|
||||||
--channel=${{ env.BRANCH_NAME }} \
|
--channel=${{ env.BRANCH_NAME }} \
|
||||||
-pr:b=./ConanProfiles/clang -pr:h=./ConanProfiles/clang \
|
-pr:b=./ConanProfiles/clang -pr:h=./ConanProfiles/Tools/clang \
|
||||||
--build=missing --remote=bigfootpackages
|
--build=missing --remote=bigfootpackages
|
||||||
|
|
||||||
CONAN_LOGIN_USERNAME=${ARTIFACTORY_USER} \
|
CONAN_LOGIN_USERNAME=${ARTIFACTORY_USER} \
|
||||||
|
|||||||
@@ -26,9 +26,11 @@ jobs:
|
|||||||
- name: Generate
|
- name: Generate
|
||||||
run: |
|
run: |
|
||||||
conan profile detect
|
conan profile detect
|
||||||
conan install . --remote=bigfootpackages -pr:h=./ConanProfiles/clang_coverage -pr:b=./ConanProfiles/clang_coverage --build=missing -s build_type=Debug
|
conan install . --remote=bigfootpackages -pr:h=./ConanProfiles/clang_coverage -pr:b=./ConanProfiles/Tools/clang --build=missing -s:h build_type=Debug
|
||||||
|
source ./build/${{ matrix.build_type }}/generators/conanbuild.sh
|
||||||
cmake -S . -B ./build/Debug --toolchain ./build/Debug/generators/conan_toolchain.cmake -DCMAKE_BUILD_TYPE=Debug -G "Ninja"
|
cmake -S . -B ./build/Debug --toolchain ./build/Debug/generators/conan_toolchain.cmake -DCMAKE_BUILD_TYPE=Debug -G "Ninja"
|
||||||
cmake --build build/Debug --parallel $(nproc)
|
cmake --build build/Debug --parallel $(nproc)
|
||||||
|
source ./build/${{ matrix.build_type }}/generators/deactivate_conanbuild.sh
|
||||||
|
|
||||||
- name: Clang-Tidy
|
- name: Clang-Tidy
|
||||||
run: run-clang-tidy -p ./build/Debug/ >> tidy_result.txt
|
run: run-clang-tidy -p ./build/Debug/ >> tidy_result.txt
|
||||||
|
|||||||
@@ -1,18 +1,44 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
# ─── Validate argument ────────────────────────────────────────────────────────
|
# ─── Validate arguments ───────────────────────────────────────────────────────
|
||||||
|
if [[ $# -lt 1 ]]; then
|
||||||
|
echo "Usage: $(basename "$0") [force|missing] [Release|RelWithDebInfo|Debug]"
|
||||||
|
echo " force - Rebuild all packages from source"
|
||||||
|
echo " missing - Only build packages not already cached"
|
||||||
|
echo " build_type (optional) - One of: Release, RelWithDebInfo, Debug"
|
||||||
|
echo " If omitted, all build types are processed"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
case "${1:-}" in
|
case "${1:-}" in
|
||||||
force) build_option="--build=*" ;;
|
force) build_option="--build=*" ;;
|
||||||
missing) build_option="--build=missing" ;;
|
missing) build_option="--build=missing" ;;
|
||||||
*)
|
*)
|
||||||
echo "Usage: $(basename "$0") [force|missing]"
|
echo "Usage: $(basename "$0") [force|missing] [Release|RelWithDebInfo|Debug]"
|
||||||
echo " force - Rebuild all packages from source"
|
echo " force - Rebuild all packages from source"
|
||||||
echo " missing - Only build packages not already cached"
|
echo " missing - Only build packages not already cached"
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# ─── Validate optional build_type argument ────────────────────────────────────
|
||||||
|
all_build_types=(Release RelWithDebInfo Debug)
|
||||||
|
|
||||||
|
if [[ -n "${2:-}" ]]; then
|
||||||
|
case "${2}" in
|
||||||
|
Release|RelWithDebInfo|Debug)
|
||||||
|
build_types=("${2}")
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "ERROR: Invalid build type '${2}'. Must be one of: Release, RelWithDebInfo, Debug"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
else
|
||||||
|
build_types=("${all_build_types[@]}")
|
||||||
|
fi
|
||||||
|
|
||||||
# ─── Register remote (skip if already registered) ─────────────────────────────
|
# ─── Register remote (skip if already registered) ─────────────────────────────
|
||||||
if conan remote list 2>/dev/null | grep -qi "bigfootpackages"; then
|
if conan remote list 2>/dev/null | grep -qi "bigfootpackages"; then
|
||||||
echo "Conan remote 'bigfootpackages' already registered, skipping."
|
echo "Conan remote 'bigfootpackages' already registered, skipping."
|
||||||
@@ -33,7 +59,7 @@ conan_common=(
|
|||||||
)
|
)
|
||||||
|
|
||||||
# ─── Install dependencies for each build type ─────────────────────────────────
|
# ─── Install dependencies for each build type ─────────────────────────────────
|
||||||
for build_type in Release RelWithDebInfo Debug; do
|
for build_type in "${build_types[@]}"; do
|
||||||
echo
|
echo
|
||||||
echo "[${build_type}] Installing dependencies..."
|
echo "[${build_type}] Installing dependencies..."
|
||||||
if ! conan install . "${conan_common[@]}" ${build_option} -s:h "build_type=${build_type}"; then
|
if ! conan install . "${conan_common[@]}" ${build_option} -s:h "build_type=${build_type}"; then
|
||||||
@@ -44,13 +70,13 @@ for build_type in Release RelWithDebInfo Debug; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "All build types installed successfully."
|
echo "All selected build types installed successfully."
|
||||||
|
|
||||||
# ─── Configure CMake for each build type ─────────────────────────────────────
|
# ─── Configure CMake for each build type ─────────────────────────────────────
|
||||||
echo
|
echo
|
||||||
echo "Configuring CMake for each build type..."
|
echo "Configuring CMake for each build type..."
|
||||||
|
|
||||||
for build_type in Release RelWithDebInfo Debug; do
|
for build_type in "${build_types[@]}"; do
|
||||||
echo
|
echo
|
||||||
echo "[${build_type}] Activating build environment..."
|
echo "[${build_type}] Activating build environment..."
|
||||||
# shellcheck disable=SC1090
|
# shellcheck disable=SC1090
|
||||||
|
|||||||
Reference in New Issue
Block a user