From 7e3d4296498876246e88c28f624c6031a631761f Mon Sep 17 00:00:00 2001 From: Alan Rynne Date: Tue, 7 May 2024 00:31:23 +0200 Subject: [PATCH] test: Super simple github action --- .github/workflows/dotnet.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 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 0000000000..4bfe1c5f43 --- /dev/null +++ b/.github/workflows/dotnet.yml @@ -0,0 +1,34 @@ +# 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: ["dui3/alpha", "dui3/ci/*"] + pull_request: + branches: ["dui3/alpha"] + +jobs: + build: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v4 + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 7.x.x + - name: Restore tools + run: dotnet tool restore + - name: Code formatting check + run: dotnet csharpier --check . + - name: Restore dependencies + run: dotnet restore DUI3-DX.slnf + - name: Build + run: msbuild DUI3-DX.slnf /p:Configuration=Release /p:IsDesktopBuild=false + - name: Upload artifacts + uses: actions/upload-artifact@v4 + with: + name: DUI3 Connectors + path: dist/zip/*.zip