Files
blowfish/.github/workflows/cmake.yml
Avinal Kumar 1e81e1d5eb
Some checks failed
Build and Test / build (Debug, clang++) (push) Failing after 3s
Build and Test / build (Debug, g++) (push) Failing after 4s
Improve GitHub Actions flow and increse Cmake version
- Increased CMake minimum version to 3.30
- added test run in github workflow

Signed-off-by: Avinal Kumar <avinal.xlvii@gmail.com>
2025-12-06 15:30:58 +05:30

38 lines
917 B
YAML

name: Build and Test
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
compiler: [g++, clang++]
build_type: [Debug]
steps:
- uses: actions/checkout@v4
- name: Install latest CMake
run: |
python3 -m pip install --upgrade pip
python3 -m pip install cmake
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Configure with sanitizers
run: |
SAN="-fsanitize=address,undefined -fno-omit-frame-pointer"
cmake -S . -B build \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
-DCMAKE_CXX_COMPILER=${{ matrix.compiler }} \
-DCMAKE_C_FLAGS="$SAN" \
-DCMAKE_CXX_FLAGS="$SAN"
- name: Build
run: cmake --build build -j
- name: Run tests
working-directory: build
run: ctest --output-on-failure -V