Generic 2D renderer #245
Workflow file for this run
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: Test Build | |
| on: | |
| push: | |
| branches: [ 'master' ] | |
| pull_request: | |
| branches: [ 'develop' ] | |
| workflow_dispatch: | |
| env: | |
| BUILD_TYPE: Debug | |
| jobs: | |
| build: | |
| env: | |
| buildDir: '${{ github.workspace }}/build/' | |
| strategy: | |
| matrix: | |
| os: [ windows-2019 ] | |
| fail-fast: false | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: | |
| submodules: true | |
| - uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: '11.2.1' | |
| if: runner.os == 'macOS' | |
| - name: Install tools on Ubuntu | |
| run: sudo apt-get install -y ninja-build build-essential libcurl4-openssl-dev | |
| if: runner.os == 'Linux' | |
| # Install latest CMake. | |
| - uses: lukka/get-cmake@latest | |
| - name: Set up Visual Studio shell | |
| if: runner.os == 'Windows' | |
| uses: egor-tensin/vs-shell@v2 | |
| - name: Configure the project (Windows) | |
| if: runner.os == 'Windows' | |
| run: | | |
| cmake -B build -G "Ninja" | |
| - name: Configure the project | |
| if: runner.os != 'Windows' | |
| run: | | |
| cmake -B build | |
| - name: Build the project | |
| run: | | |
| cmake --build build | |
| - name: Run the tests | |
| run: | | |
| cmake --build build --target RunFrameworkTests |