From dd1c46ce7840e28089fe2aaff941e5675c4ffe03 Mon Sep 17 00:00:00 2001 From: Matt Hess Date: Sat, 20 Dec 2025 07:44:04 +0000 Subject: [PATCH] Enable p2pool_tests build across all C/C++ CI platforms --- .github/workflows/c-cpp.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index dfb7ddb..5255e8f 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -88,7 +88,7 @@ jobs: mkdir build cd build cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_POLICY_VERSION_MINIMUM="3.5" -DCMAKE_C_FLAGS='${{ matrix.config.flags }} -Wl,-s -Wl,--gc-sections' -DCMAKE_CXX_FLAGS='${{ matrix.config.flags }} -Wl,-s -Wl,--gc-sections' -DSTATIC_LIBS=ON -DARCH_ID=${{ matrix.config.arch }} - #make -j$(nproc) p2pool_tests + make -j$(nproc) p2pool_tests - name: Run tests shell: alpine.sh {0} @@ -156,7 +156,7 @@ jobs: mkdir build cd build cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=${{ matrix.config.c }} -DCMAKE_CXX_COMPILER=${{ matrix.config.cpp }} -DCMAKE_C_FLAGS='${{ matrix.config.flags }}' -DCMAKE_CXX_FLAGS='${{ matrix.config.flags }}' -DCMAKE_POLICY_VERSION_MINIMUM="3.5" - #make -j$(nproc) p2pool_tests + make -j$(nproc) p2pool_tests - name: Run tests run: | @@ -235,7 +235,7 @@ jobs: mkdir build cd build cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS='${{ matrix.config.flags }} -Wl,-s -Wl,--gc-sections' -DCMAKE_CXX_FLAGS='${{ matrix.config.flags }} -Wl,-s -Wl,--gc-sections' -DSTATIC_LIBS=ON -DCMAKE_POLICY_VERSION_MINIMUM="3.5" - #make -j$(nproc) p2pool_tests + make -j$(nproc) p2pool_tests - name: Run tests run: | @@ -312,7 +312,7 @@ jobs: mkdir build cd build cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS='${{ matrix.config.flags }} -Wl,-s -Wl,--gc-sections' -DCMAKE_CXX_FLAGS='${{ matrix.config.flags }} -Wl,-s -Wl,--gc-sections' -DSTATIC_LIBS=ON -DARCH_ID=aarch64 -DCMAKE_POLICY_VERSION_MINIMUM="3.5" - #make -j$(nproc) p2pool_tests + make -j$(nproc) p2pool_tests - name: Run tests run: | @@ -402,7 +402,7 @@ jobs: mkdir build cd build cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=../../cmake/riscv64_toolchain.cmake -DCMAKE_C_FLAGS='${{ matrix.config.flags }} -Wl,-s -Wl,--gc-sections' -DCMAKE_CXX_FLAGS='${{ matrix.config.flags }} -Wl,-s -Wl,--gc-sections' -DSTATIC_LIBS=ON -DARCH_ID=riscv64 -DCMAKE_POLICY_VERSION_MINIMUM="3.5" - #make -j$(nproc) p2pool_tests + make -j$(nproc) p2pool_tests - name: Prepare test data run: | @@ -494,7 +494,7 @@ jobs: mkdir build cd build cmake .. -DCMAKE_BUILD_TYPE=Release -G "Unix Makefiles" -DCMAKE_C_COMPILER=${{ matrix.config.c }} -DCMAKE_CXX_COMPILER=${{ matrix.config.cxx }} -DCMAKE_C_FLAGS="${{ matrix.config.flags }} -Wl,-s -Wl,--gc-sections" -DCMAKE_CXX_FLAGS="${{ matrix.config.flags }} -Wl,-s -Wl,--gc-sections" -DSTATIC_LIBS=ON -DOPENSSL_NO_ASM=ON - #make -j$(nproc) p2pool_tests + make -j$(nproc) p2pool_tests - name: Run tests run: | @@ -633,7 +633,7 @@ jobs: mkdir build cd build cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER="$(brew --prefix llvm@18)/bin/clang" -DCMAKE_CXX_COMPILER="$(brew --prefix llvm@18)/bin/clang++" -DCMAKE_AR="$(brew --prefix llvm@18)/bin/llvm-ar" -DCMAKE_RANLIB="$(brew --prefix llvm@18)/bin/llvm-ranlib" -DCMAKE_C_FLAGS='-flto -target x86_64-apple-macos10.13 -Wno-overriding-t-option' -DCMAKE_CXX_FLAGS='-flto -target x86_64-apple-macos10.13 -Wno-overriding-t-option' -DCMAKE_ASM_FLAGS='-target x86_64-apple-macos10.13' -DSTATIC_LIBS=ON - #make -j4 p2pool_tests + make -j4 p2pool_tests - name: Run tests run: | @@ -700,7 +700,7 @@ jobs: mkdir build cd build cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER="$(brew --prefix llvm@18)/bin/clang" -DCMAKE_CXX_COMPILER="$(brew --prefix llvm@18)/bin/clang++" -DCMAKE_AR="$(brew --prefix llvm@18)/bin/llvm-ar" -DCMAKE_RANLIB="$(brew --prefix llvm@18)/bin/llvm-ranlib" -DCMAKE_C_FLAGS="-target arm64-apple-macos-11" -DCMAKE_CXX_FLAGS="-target arm64-apple-macos-11" -DSTATIC_LIBS=ON -DWITH_LTO=OFF -DARCH_ID=aarch64 - #make -j3 p2pool_tests + make -j3 p2pool_tests - name: Run tests run: | @@ -774,7 +774,7 @@ jobs: mkdir build cd build cmake .. -DCMAKE_BUILD_TYPE=Release -DSTATIC_LIBS=ON - #make -j4 p2pool_tests + make -j4 p2pool_tests unxz *.xz || true ./p2pool_tests @@ -825,7 +825,7 @@ jobs: cd ../tests mkdir build && cd build cmake .. -DCMAKE_BUILD_TYPE=Release - #make -j4 p2pool_tests + make -j4 p2pool_tests unxz *.xz || true ./p2pool_tests