Skip to content

Force x64 arch in CI builds #26

Force x64 arch in CI builds

Force x64 arch in CI builds #26

name: build-windows-msvc
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
WindowsMSVC:
runs-on: windows-latest # https://github.com/actions/runner-images/blob/main/images/windows/Windows2022-Readme.md
strategy:
matrix:
architecture: [ x64 ]
build-platform: [ x64 ]
defaults:
run:
shell: cmd
steps:
- uses: actions/checkout@v2
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2
with:
vs-version: '17.9.6' # Stable release 2022 17.9.6 / 15 April 2024
vs-prerelease: true
msbuild-architecture: x64
- name: Generate Visual Studio 17 2022 Solution
run: |
mkdir build && cd build
cmake .. -G"Visual Studio 17 2022" -A x64 -DCMAKE_BUILD_TYPE=Release -DENIGMA_ENABLE_TESTS=OFF
- name: Display tree structure of PRE build
run: tree /f /a build
- name: Build Enigma Solution
run: |
cd build
msbuild Enigma.sln -property:Configuration=Release,MultiProcessorCompilation=true -maxCpuCount -verbosity:minimal -noLogo
- name: Display tree structure of POST build
run: tree /f /a build
- name: Running Enigma
run: build\Release\Enigma --version