Skip to content

Merge pull request #145 from rayshader/master #819

Merge pull request #145 from rayshader/master

Merge pull request #145 from rayshader/master #819

Workflow file for this run

name: Build Workflow
on: [ push, pull_request ]
jobs:
build:
name: Build (C++${{ matrix.cpp_standard }}, Header Only ${{ matrix.use_header_only }}, ${{ matrix.config }})
runs-on: windows-latest
strategy:
matrix:
cpp_standard: [ 20 ]
use_header_only: [ NO, YES ]
config: [ Debug, Release, MinSizeRel, RelWithDebInfo ]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Create build directory
run: mkdir build
- name: Configure
working-directory: build
run: |
cmake `
-DCMAKE_CXX_STANDARD=${{ matrix.cpp_standard }} `
-DRED4EXT_HEADER_ONLY=${{ matrix.use_header_only }} `
-DRED4EXT_USE_PCH=ON `
-DRED4EXT_BUILD_EXAMPLES=ON `
-DRED4EXT_EXTRA_WARNINGS=ON `
-DRED4EXT_TREAT_WARNINGS_AS_ERRORS=ON `
${{ github.workspace }}
- name: Build
working-directory: build
run: |
cmake `
--build . `
--config ${{ matrix.config }}