Skip to content

Commit

Permalink
Update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Amarok79 committed Jun 28, 2024
1 parent b405d01 commit 0116457
Showing 1 changed file with 21 additions and 11 deletions.
32 changes: 21 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,31 @@ name: CI

on:
push:
branches: [main]
branches: [ main ]
pull_request:
branches: [main]
branches: [ main ]

jobs:
buildtest:
runs-on: windows-latest
steps:
- name: Install .NET 6.0
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x

- name: Install .NET 7.0
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: 7.0.x

- name: Install .NET 8.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x

- name: Checkout sources
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Restore packages
run: dotnet restore
Expand All @@ -35,18 +40,23 @@ jobs:
buildrelease:
runs-on: windows-latest
steps:
- name: Install .NET 6.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x

- name: Install .NET 7.0
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: 7.0.x

- name: Install .NET 6.0
uses: actions/setup-dotnet@v1
- name: Install .NET 8.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
dotnet-version: 8.0.x

- name: Checkout sources
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Restore packages
run: dotnet restore
Expand All @@ -55,7 +65,7 @@ jobs:
run: dotnet build --configuration Release -p:ContinuousIntegrationBuild=true

- name: Upload NuGet package
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: nuget
path: bin/lib/*.nupkg
Expand Down

0 comments on commit 0116457

Please sign in to comment.