Compile with MSBuild and VS 2022 for Windows #19
Workflow file for this run
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: "Compile with MSBuild for Windows" | |
on: | |
workflow_dispatch: | |
# push: | |
# branches: [ "main" ] | |
# pull_request: | |
# branches: [ "main" ] | |
env: | |
# Path to the solution file relative to the root of the project. | |
SOLUTION_FILE_PATH: sDNA\sdna_vs2008\sdna_vs2008.sln | |
# Configuration type to build. | |
BUILD_CONFIGURATION: Release | |
jobs: | |
compile: | |
name: Try to compile on windows | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: 'Add "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\bin" to path' | |
shell: bash | |
run: echo "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\bin" >> $GITHUB_PATH | |
- name: Configure nmake | |
uses: ilammy/msvc-dev-cmd@v1 | |
# https://github.com/marketplace/actions/enable-developer-command-prompt | |
- name: Add msbuild to PATH | |
uses: microsoft/[email protected] | |
# - name: Install boost | |
# uses: MarkusJx/[email protected] | |
# id: install-boost | |
# with: | |
# REQUIRED: Specify the required boost version | |
# A list of supported versions can be found here: | |
# https://github.com/MarkusJx/prebuilt-boost/blob/main/versions-manifest.json | |
# boost_version: 1.73.0 | |
# # OPTIONAL: Specify a custon install location | |
# boost_install_dir: C:\some_directory | |
# # OPTIONAL: Specify a platform version | |
# platform_version: 2019 | |
# # OPTIONAL: Specify a toolset | |
# toolset: msvc | |
# NOTE: If a boost version matching all requirements cannot be found, | |
# this build step will fail | |
- name: Install boost with Choco | |
shell: cmd | |
run: choco install boost-msvc-14.1 | |
- name: Build Geos | |
shell: cmd | |
run: sDNA\geos\build_on_github.bat | |
# - name: Run MSBuild on main sdna_plus .proj | |
# shell: cmd | |
# run: MSBuild.exe build_installer.proj /t:rebuild /p:Configuration=release' | |
- name: Build | |
working-directory: ${{env.GITHUB_WORKSPACE}} | |
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}} | |
- name: upload output dir | |
uses: actions/upload-artifact@v3 | |
with: | |
name: sdna_plus_output | |
path: output/ | |
retention-days: 5 |