Allow turning a recorded macro into a bitmap; fix RAII #409
This file contains 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: CMake | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
env: | |
BUILD_TYPE: Debug | |
jobs: | |
build: | |
strategy: | |
matrix: | |
platform: [ubuntu-latest, macos-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies (Ubuntu) | |
if: startsWith(matrix.platform, 'ubuntu-') | |
run: sudo apt-get update && sudo apt-get install -y libsdl2-dev libgl1-mesa-dev libfontconfig1-dev libgtest-dev xvfb | |
- name: Install dependencies (macOS) | |
if: startsWith(matrix.platform, 'macos-') | |
run: brew install sdl2 googletest | |
- name: Create Build Environment | |
run: cmake -E make_directory ${{github.workspace}}/build | |
- name: Configure CMake | |
# Use a bash shell so that we can use the same syntax for environment variable | |
# access regardless of the host operating system. | |
shell: bash | |
working-directory: ${{github.workspace}}/build | |
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE | |
- name: Build | |
working-directory: ${{github.workspace}}/build | |
shell: bash | |
run: cmake --build . --config $BUILD_TYPE | |
- name: Run tests (Linux) | |
if: startsWith(matrix.platform, 'ubuntu-') | |
working-directory: ${{github.workspace}}/build | |
shell: bash | |
# Execute tests defined by the CMake configuration. | |
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail | |
run: xvfb-run --auto-servernum ctest -C $BUILD_TYPE --output-on-failure | |
- name: Run tests (macOS) | |
if: startsWith(matrix.platform, 'macos-') | |
run: ctest -C $BUILD_TYPE --output-on-failure |