I prefer master branch #1
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 | ||
| on: | ||
| push: | ||
| branches: [ master ] | ||
| pull_request: | ||
| jobs: | ||
| build-test: | ||
| strategy: | ||
| matrix: | ||
| os: [ ubuntu-latest, windows-latest, macos-latest ] | ||
| runs-on: ${{ matrix.os }} | ||
|
Check failure on line 13 in .github/workflows/ci.yml
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v3 | ||
| - name: Install dependencies | ||
| run: sudo apt-get update && sudo apt-get install -y cmake ninja-build g++ | ||
| - name: Configure (with tests) | ||
| run: cmake -B build -G Ninja -DTIMEDURATION_BUILD_TESTS=ON | ||
| - name: Build | ||
| run: cmake --build build | ||
| - name: Run tests | ||
| run: ctest --test-dir build --output-on-failure | ||