-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C#: CI - fix dotnet installation on mac runners #3382
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Yury-Fridlyand <[email protected]>
Signed-off-by: Yury-Fridlyand <[email protected]>
# workaround for https://github.com/actions/setup-dotnet/issues/608 | ||
- name: Fix dotnet installation on mac | ||
if: ${{ matrix.host.OS == 'macos' }} | ||
run: dotnet new globaljson --sdk-version ${{ matrix.dotnet }}.0 --roll-forward latestFeature |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
${{ matrix.dotnet }}.0
creates a string '8.0.0' or '6.0.0'. The last '.0' is essential.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How urgent is this? Looks more like a workaround. If urgent we can merge this in for now while wait for actual solution/fix from the setup-dotnet
issue.
Not urgent. Agree to keep it open intil that issue fixed or it become critical for us. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Without creating a
global.json
, dotnet didn't use correct version of SDK on mac runners.