From 6b6ac904ca89b8a55d0581d0d61917b40cb18f08 Mon Sep 17 00:00:00 2001 From: Kyle Date: Sat, 16 Nov 2024 14:28:56 +0800 Subject: [PATCH] actions --- .github/workflows/dotnet-desktop.yml | 37 ++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/dotnet-desktop.yml diff --git a/.github/workflows/dotnet-desktop.yml b/.github/workflows/dotnet-desktop.yml new file mode 100644 index 0000000..def16ae --- /dev/null +++ b/.github/workflows/dotnet-desktop.yml @@ -0,0 +1,37 @@ +name: Action + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + + build: + + strategy: + matrix: + configuration: [Release] + + runs-on: windows-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 1 + + - name: Install .NET Core + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 9.0.x + + - name: Setup MSBuild.exe + uses: microsoft/setup-msbuild@v2 + + - name: Restore the application + run: dotnet restore + + - name: Build + run: dotnet build --no-restore