From 21ff8d6ea4514bb18f1868a8f504450e05c366d4 Mon Sep 17 00:00:00 2001 From: seanet7or Date: Thu, 12 Oct 2023 19:50:19 +0200 Subject: [PATCH] Create dotnet.yml --- .github/workflows/dotnet.yml | 40 ++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/dotnet.yml diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml new file mode 100644 index 0000000..143e862 --- /dev/null +++ b/.github/workflows/dotnet.yml @@ -0,0 +1,40 @@ +# 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: .NET + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +env: + BUILD_CONFIGURATION: Release + DOTNET_VERSION: 7.0.x + +jobs: + build: + + runs-on: windows-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup .NET ${{ env.DOTNET_VERSION }} + uses: actions/setup-dotnet@v2 + with: + dotnet-version: ${{ env.DOTNET_VERSION }} + + - name: Install .NET MAUI Workload + run: dotnet workload install maui + + - name: Restore dependencies + run: dotnet restore + + - name: Build + run: dotnet build --no-restore + + #- name: Test + # run: dotnet test --no-build --verbosity normal