Skip to content

Commit

Permalink
build(ci): only run builds supported by the .NET 5 runtime
Browse files Browse the repository at this point in the history
A separate workflow will target .NET Framework 4.6.1 on a windows host
  • Loading branch information
ArachisH committed Mar 16, 2024
1 parent ae1e90c commit dd2c923
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,13 @@ jobs:
fetch-depth: 0

- uses: actions/setup-dotnet@v3
id: dotnetstep
name: .NET Setup
with:
dotnet-version: 7.0.x
dotnet-version: 5.0.x

- name: Create Temporary Global.json
run: echo '{"sdk":{"version":"${{ steps.dotnetstep.outputs.dotnet-version }}", "rollForward":"major"}}' > ./global.json

- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v0
Expand Down

0 comments on commit dd2c923

Please sign in to comment.