Skip to content

Commit

Permalink
Build Windows and Linux
Browse files Browse the repository at this point in the history
* Update build-linux
* Update build-windows
  • Loading branch information
beats-dh authored Oct 28, 2022
1 parent 776a1ad commit 0254a02
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/dotnet.yml → .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: .NET
name: Build Linux

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

jobs:
build:
Expand All @@ -23,3 +22,12 @@ jobs:
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal

- name: Publish
run: dotnet publish

- name: Upload WebApp1 Build Artifact
uses: actions/upload-artifact@v2
with:
name: CanaryLauncher
path: /home/runner/work/CanaryLauncherUpdate/CanaryLauncherUpdate/bin/Debug/net6.0-windows/publish/
50 changes: 50 additions & 0 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
name: Build Windows

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

jobs:

build:

strategy:
matrix:
configuration: [Release]

runs-on: windows-latest

env:
Solution_Name: CanaryLauncherUpdate.csproj
Test_Project_Path: CanaryLauncherUpdate.csproj

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

# Install the .NET Core workload
- name: Install .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x

# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
- name: Setup MSBuild.exe
uses: microsoft/[email protected]

# Execute all unit tests in the solution
- name: Execute unit tests
run: dotnet test

- name: Publish
run: dotnet publish

- name: Upload Build Artifact
uses: actions/upload-artifact@v2
with:
name: CanaryLauncher
path: D:\a\CanaryLauncherUpdate\CanaryLauncherUpdate\bin\Debug\net6.0-windows\publish\

0 comments on commit 0254a02

Please sign in to comment.