Skip to content

Workflows attempt 6

Workflows attempt 6 #6

Workflow file for this run

name: Windows Build
on:
push:
branches: [master]
pull_request:
branches: [master]
env:
# Path to the solution file relative to the root of the project.
SOLUTION_FILE_PATH: .\DALTools\DALTools.sln
jobs:
build:
name: ${{matrix.configuration}}
runs-on: windows-2019
strategy:
matrix:
configuration: [Debug, Release]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Add MSBuild to PATH
uses: microsoft/[email protected]
- name: Restore NuGet Packages
working-directory: ${{env.GITHUB_WORKSPACE}}
run: nuget restore ${{env.SOLUTION_FILE_PATH}}
- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
# Add additional options to the MSBuild command line here (like platform or verbosity level).
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
run: msbuild /m /p:Configuration=${{matrix.configuration}} ${{env.SOLUTION_FILE_PATH}}
- name: Prepare Artifacts
working-directory: ${{env.GITHUB_WORKSPACE}}
run: .\DALTools\Scripts\PrepareArtifacts.bat ${{matrix.configuration}}
- name: Upload Artifacts
uses: actions/[email protected]
with:
name: DALTools-${{matrix.configuration}}
path: ${{env.GITHUB_WORKSPACE}}\Artifacts