Skip to content

Commit 2747c89

Browse files
authored
Create dotnet-desktop.yml
1 parent 06e841d commit 2747c89

1 file changed

Lines changed: 59 additions & 0 deletions

File tree

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# For more information on GitHub Actions, refer to https://github.com/features/actions
2+
# For a complete CI/CD sample to get started with GitHub Action workflows for Desktop Applications,
3+
# refer to https://github.com/microsoft/github-actions-for-desktop-apps
4+
5+
name: .NET Core Desktop
6+
7+
on:
8+
push:
9+
branches: [ "main" ]
10+
pull_request:
11+
branches: [ "main" ]
12+
13+
jobs:
14+
15+
build:
16+
17+
strategy:
18+
matrix:
19+
configuration: [Debug, Release]
20+
21+
runs-on: linux # For a list of available runner types, refer to
22+
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on
23+
24+
env:
25+
Solution_Name: EdmGraph.sln
26+
Test_Project_Path: tests\EdmGraph.Tests\EdmGraph.Tests.csproj
27+
28+
steps:
29+
- name: Checkout
30+
uses: actions/checkout@v4
31+
with:
32+
fetch-depth: 0
33+
34+
# Install the .NET Core workload
35+
- name: Install .NET Core
36+
uses: actions/setup-dotnet@v4
37+
with:
38+
dotnet-version: 9.0.x
39+
40+
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
41+
- name: Setup MSBuild.exe
42+
uses: microsoft/setup-msbuild@v2
43+
44+
# # Execute all unit tests in the solution
45+
# - name: Execute unit tests
46+
# run: dotnet test
47+
48+
# Restore the application to populate the obj folder with RuntimeIdentifiers
49+
- name: Restore the application
50+
run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration
51+
env:
52+
Configuration: ${{ matrix.configuration }}
53+
54+
# # Upload the MSIX package: https://github.com/marketplace/actions/upload-a-build-artifact
55+
# - name: Upload build artifacts
56+
# uses: actions/upload-artifact@v4
57+
# with:
58+
# name: MSIX Package
59+
# path: ${{ env.Wap_Project_Directory }}\AppPackages

0 commit comments

Comments
 (0)