fix: skip bd init when .beads/ already exists in repo #9
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: sudo apt-get update && sudo apt-get install -y cmake libsdl2-dev | |
| - name: Configure | |
| run: | | |
| cmake -B build \ | |
| -DCMAKE_BUILD_TYPE=Release \ | |
| -DBUILD_TESTS=ON \ | |
| -DSDL2_PATH=/usr | |
| - name: Build | |
| run: cmake --build build --parallel | |
| - name: Run ctest | |
| run: ctest --test-dir build --output-on-failure | |
| - name: Run test_math | |
| run: ./build/tests | |
| - name: List build artifacts | |
| run: find build -maxdepth 2 -type f -executable | sort | |
| - name: Smoke test demo | |
| run: ./build/demo |