Skip to content

chore(docs): define goals #17

chore(docs): define goals

chore(docs): define goals #17

name: Build and Test FastHash (C++)
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y cmake g++ make
- name: Clean previous build files
run: rm -rf build
- name: Configure CMake
run: cmake -B build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }}
- name: Build project
run: cmake --build build --config ${{ env.BUILD_TYPE }}
- name: Run tests (if defined)
run: |
if [ -f build/CTestTestfile.cmake ]; then
ctest --test-dir build -C ${{ env.BUILD_TYPE }} --output-on-failure
else
echo "No tests found. Skipping."
fi