Update README.md #32
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, Test, and Lint | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| build_and_test: | |
| strategy: | |
| matrix: | |
| include: | |
| - os: ubuntu-latest | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y cmake libgtest-dev clang-format libopenblas-dev | |
| - name: Configure CMake | |
| run: cmake -S . -B build -DUSE_THREADING=OFF | |
| - name: Build | |
| run: cmake --build build | |
| - name: Run Tests | |
| run: ctest --output-on-failure --test-dir build --verbose | |
| - name: Check Formatting (clang-format) | |
| run: find . -not -path "./build/*" \( -name '*.h' -o -name '*.cpp' -o -name '*.c' \) -print0 | xargs -0 clang-format --dry-run --Werror -style=file |