Skip to content

Commit 4555c14

Browse files
authored
Merge pull request #12 from jsturtevant/update-ci
Update action runners and use .net 9 preview in ci
2 parents a66f726 + 84e21f0 commit 4555c14

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,17 @@ on:
1111

1212
jobs:
1313
build:
14-
1514
runs-on: windows-latest
16-
15+
name: Build with Dotnet ${{ matrix.dotnet }}
16+
strategy:
17+
matrix:
18+
dotnet: [ '8.x', '9.0.100-preview.4.24267.66']
1719
steps:
18-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@v4
1921
- name: Setup .NET
20-
uses: actions/setup-dotnet@v3
22+
uses: actions/setup-dotnet@v4
2123
with:
22-
dotnet-version: 8.0.100-rtm.23516.5
24+
dotnet-version: ${{ matrix.dotnet }}
2325
- name: Restore dependencies
2426
run: dotnet restore
2527
- name: Prepare WASM SDKs
@@ -31,8 +33,9 @@ jobs:
3133
- name: Pack
3234
run: dotnet pack -c Release /p:BuildNumber=${{ github.run_number }}
3335
- name: Upload artifacts
34-
uses: actions/upload-artifact@v3
36+
uses: actions/upload-artifact@v4
3537
with:
3638
name: nuget-packages
3739
path: artifacts/*.nupkg
3840
if-no-files-found: error
41+
if: ${{ matrix.dotnet == '8.x' }} # only need one package published https://github.com/actions/upload-artifact?tab=readme-ov-file#not-uploading-to-the-same-artifact

0 commit comments

Comments
 (0)