feat: possibly working #10
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 | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| build: | |
| runs-on: macos-12 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v2 | |
| with: | |
| submodules: 'recursive' | |
| - name: Install dependencies | |
| run: | | |
| brew install cmake ninja sdl2 sdl2_ttf sdl2_image sdl2_mixer | |
| - name: Create build directory | |
| run: mkdir build | |
| - name: Configure CMake | |
| run: cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_MAKE_PROGRAM=$(brew --prefix)/bin/ninja -G Ninja -S . -B build | |
| - name: Link | |
| run: ninja | |
| working-directory: build | |
| - name: Test | |
| run: ctest --output-on-failure | |
| working-directory: build |