Skip to content

MSBuild

MSBuild #34

name: .NET CI with MSBuild
on:
workflow_dispatch:
#push:
# branches: [ "main" ]
#pull_request:
# branches: [ "main" ]
jobs:
build:
strategy:
matrix:
configuration: [Release]
runs-on: windows-2019
env:
Solution_Name: Wreck.sln
Configuration: Release
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup .NET Framework 3.5
run: Enable-WindowsOptionalFeature -Online -FeatureName "NetFx3" -All
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- name: Build solution
# run: msbuild $env:Base_Directory\$env:Solution_Name -t:rebuild -property:Configuration=$env:Configuration
#run: |
# cd "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\"
# msbuild $Env:GITHUB_WORKSPACE\Wreck.sln -t:Rebuild -p:Configuration=Release -p:Platform=x86 -p:TargetFrameworkVersion=v2.0
run: pwd && ls
env:
Configuration: ${{ matrix.configuration }}
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: wreck
path: bin\Release