Skip to content

Commit

Permalink
Create build-windows.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jorystewart authored Jul 9, 2024
1 parent f0365e3 commit ad1442e
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net

name: build-windows

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build-windows:

runs-on: windows-latest

steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Setup MSBuild
uses: actions/setup-msbuild@v2
with:
msbuild-architecture: x64
- name: restore
run: dotnet restore
- name: Build Single-File Release
run: MSBuild.exe .\Trashman\trashman.csproj @.\build\win-x64-singlefile.rsp
- name: Build Single-File Self-Contained
run: MSBuild.exe .\Trashman\trashman.csproj @.\build\win-x64-singlefile-selfcontained.rsp
- name: Upload win-x64 artifact
uses: actions/upload-artifact@v4
with:
name: trashman-win-x64.exe
path: .\out\net8.0\win-x64\publish\trashman.exe
- name: Upload win-x64-selfcontained artifact
uses: actions/upload-artifact@v4
with:
name: trashman-win-x64-selfcontained.exe
path: .\out\net8.0\win-x64-selfcontained\publish\trashman.exe

0 comments on commit ad1442e

Please sign in to comment.