mirror of
https://github.com/avinal/blowfish.git
synced 2026-01-10 06:48:32 +05:30
Improve GitHub Actions flow and increse Cmake version
Some checks failed
Build and Test / build (push) Failing after 11s
Some checks failed
Build and Test / build (push) Failing after 11s
- Increased CMake minimum version to 3.30 - added test run in github workflow Signed-off-by: Avinal Kumar <avinal.xlvii@gmail.com>
This commit is contained in:
38
.github/workflows/cmake.yml
vendored
38
.github/workflows/cmake.yml
vendored
@@ -1,24 +1,34 @@
|
|||||||
name: Build and Test
|
name: Build and Test
|
||||||
|
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
|
||||||
matrix: {compiler: [gcc, clang], build_type: [Release, Debug]}
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Install deps
|
|
||||||
run: sudo apt-get update && sudo apt-get install -y build-essential cmake
|
- name: Install latest CMake
|
||||||
- name: Configure
|
run: |
|
||||||
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
|
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
|
- name: Build
|
||||||
run: cmake --build build -j
|
run: cmake --build build -j
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: ctest --output-on-failure -C ${{ matrix.build_type }} -V
|
working-directory: build
|
||||||
sanitize:
|
run: ctest --output-on-failure
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="-fsanitize=address,undefined -fno-omit-frame-pointer"
|
|
||||||
- run: cmake --build build -j
|
|
||||||
- run: ctest --output-on-failure -C Debug -V
|
|
||||||
|
|||||||
Reference in New Issue
Block a user