Files
blowfish/.github/workflows/cmake.yml
Avinal Kumar f67d44bc8a
Some checks failed
Build and Test / build (push) Failing after 11s
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:42:55 +05:30

35 lines
845 B
YAML

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