Merge pull request #4 from git-for-windows/dependabot/github_actions/… #15
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: Build WinToast | |
on: [push, pull_request] | |
env: | |
# Path to the solution file relative to the root of the project. | |
SOLUTION_FILE_PATH: "example/console-example/WinToast Console Example.sln" | |
# Configuration type to build. | |
BUILD_CONFIGURATION: Release | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Add MSBuild to PATH | |
uses: microsoft/[email protected] | |
- name: Build | |
working-directory: ${{env.GITHUB_WORKSPACE}} | |
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} "${{env.SOLUTION_FILE_PATH}}" | |
- name: Upload `wintoast.exe` | |
uses: actions/upload-artifact@v4 | |
with: | |
name: wintoast | |
path: example/console-example/x64/${{env.BUILD_CONFIGURATION}} |