From bc1af3279a65a119ab1eed97d69aeed8fa1e02e8 Mon Sep 17 00:00:00 2001 From: frederikprijck Date: Wed, 11 Oct 2023 14:21:29 +0200 Subject: [PATCH] Add GitHub Actions integration --- .github/workflows/build.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..390bca4 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,37 @@ +name: Build + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + + workflow_dispatch: + +env: + DOTNETVERSION: 6.0.300 + +jobs: + buildWindows: + runs-on: windows-2022 + + env: + Solution_Path: Sample\Auth0MauiApp.sln + + steps: + - uses: actions/checkout@v2 + + - name: Install .NET Core + uses: actions/setup-dotnet@v3 + with: + dotnet-version: '6.0.x' + + - name: Install .NET Workloads + run: dotnet workload install maui + + - name: Install dependencies + run: dotnet restore $env:Solution_Path + + - name: Build + run: dotnet build $env:Solution_Path --configuration Release --no-restore + \ No newline at end of file