-z noexecstack #42
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: Windows Build | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
mode: [Debug, Release] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: seanmiddleditch/gha-setup-ninja@master | |
- name: Build | |
run: | | |
$env:BOOST_ROOT = $env:BOOST_ROOT_1_72_0 | |
$devShell = &"${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -latest -find **\Microsoft.VisualStudio.DevShell.dll | |
$installPath = &"${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -latest -property installationpath | |
Import-Module $devShell | |
Enter-VsDevShell -VsInstallPath $installPath -SkipAutomaticLocation -DevCmdArguments "-arch=amd64" | |
cmake -GNinja -S . -B build -DCMAKE_BUILD_TYPE=${{ matrix.mode }} | |
cmake --build build --target res-example | |
- name: Run tests | |
run: build\res-example.exe |