From 4c7a7320b1531e8644b930287b2e8e14185f5518 Mon Sep 17 00:00:00 2001 From: Easley wang Date: Wed, 31 Jul 2024 19:02:16 +0800 Subject: [PATCH] Create dotnet.yml --- .github/workflows/dotnet.yml | 20 ++++++++++++++++++++ 1 file changed, 20 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..15c848b --- /dev/null +++ b/.github/workflows/dotnet.yml @@ -0,0 +1,20 @@ +name: .NET + +on: [push, pull_request] + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [windows-2022, ubuntu-22.04, macos-12] + steps: + - uses: actions/checkout@v2 + - name: Setup .NET 8 + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 8.0.x + - name: Install dependencies + run: dotnet restore + - name: Build + run: dotnet build AvaloniaSample --configuration Release --no-restore