From 0dba3b7b16dbddfb0aa17838573e63a5a66d90ba Mon Sep 17 00:00:00 2001 From: Caelan Sayler Date: Mon, 23 Dec 2024 14:49:35 +0000 Subject: [PATCH] update ci --- .github/workflows/build.yml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fdd1adf..b7d586b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,9 +1,11 @@ name: Build -on: [ push, pull_request ] - -env: - DOTNET_VERSION: '6.0.301' +on: + push: + branches: [master, develop] + pull_request: + branches: [master, develop] + workflow_dispatch: jobs: build: @@ -13,14 +15,15 @@ jobs: - uses: actions/checkout@v2 with: fetch-depth: 0 - - name: Setup .NET - uses: actions/setup-dotnet@v1 + - name: Setup dotnet + uses: actions/setup-dotnet@v4 with: - dotnet-version: ${{ env.DOTNET_VERSION }} + dotnet-version: | + 6.0.x + 8.0.x + 9.0.x - name: Build run: dotnet build -c Release - #- name: Test - # run: dotnet test --no-build test\Squirrel.Tests\Squirrel.Tests.csproj -c Release -l "console;verbosity=detailed" - name: Upload Artifacts uses: actions/upload-artifact@v3 with: