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 5fb78ae
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,18 @@ 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
with:
versionSpec: '6.x'
includePrerelease: true
versionSpec: '5.x'

- name: Determine Version
uses: gittools/actions/gitversion/execute@v0
Expand Down

0 comments on commit 5fb78ae

Please sign in to comment.