Skip to content

Commit 0dba3b7

Browse files
committed
update ci
1 parent cf7d965 commit 0dba3b7

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

.github/workflows/build.yml

+12-9
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
name: Build
22

3-
on: [ push, pull_request ]
4-
5-
env:
6-
DOTNET_VERSION: '6.0.301'
3+
on:
4+
push:
5+
branches: [master, develop]
6+
pull_request:
7+
branches: [master, develop]
8+
workflow_dispatch:
79

810
jobs:
911
build:
@@ -13,14 +15,15 @@ jobs:
1315
- uses: actions/checkout@v2
1416
with:
1517
fetch-depth: 0
16-
- name: Setup .NET
17-
uses: actions/setup-dotnet@v1
18+
- name: Setup dotnet
19+
uses: actions/setup-dotnet@v4
1820
with:
19-
dotnet-version: ${{ env.DOTNET_VERSION }}
21+
dotnet-version: |
22+
6.0.x
23+
8.0.x
24+
9.0.x
2025
- name: Build
2126
run: dotnet build -c Release
22-
#- name: Test
23-
# run: dotnet test --no-build test\Squirrel.Tests\Squirrel.Tests.csproj -c Release -l "console;verbosity=detailed"
2427
- name: Upload Artifacts
2528
uses: actions/upload-artifact@v3
2629
with:

0 commit comments

Comments
 (0)