chore(docs): define goals #17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |