Skip to content

Compile with MSBuild and VS 2022 for Windows #15

Compile with MSBuild and VS 2022 for Windows

Compile with MSBuild and VS 2022 for Windows #15

Workflow file for this run

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: Add msbuild to PATH
uses: microsoft/[email protected]
# https://github.com/microsoft/setup-msbuild
# - name: Restore NuGet packages
# working-directory: ${{env.GITHUB_WORKSPACE}}
# run: nuget restore ${{env.SOLUTION_FILE_PATH}}
- name: Build Geos
shell: cmd
run: sDNA\geos\build_in_ci_vs_2022.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}} build_installer.proj
# ${{env.SOLUTION_FILE_PATH}}
- name: upload output dir
uses: actions/upload-artifact@v3
with:
name: sdna_plus_output
path: output/
retention-days: 5