Skip to content
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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Yury-Fridlyand
Copy link
Collaborator

Without creating a global.json, dotnet didn't use correct version of SDK on mac runners.

Signed-off-by: Yury-Fridlyand <[email protected]>
Signed-off-by: Yury-Fridlyand <[email protected]>
@Yury-Fridlyand Yury-Fridlyand added C# C# wrapper CI/CD CI/CD related labels Mar 18, 2025
@Yury-Fridlyand Yury-Fridlyand requested a review from a team as a code owner March 18, 2025 03:09
# 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
Copy link
Collaborator Author

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.

Copy link
Collaborator

@jamesx-improving jamesx-improving left a 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.

@Yury-Fridlyand
Copy link
Collaborator Author

Yury-Fridlyand commented Mar 18, 2025

Not urgent. Agree to keep it open intil that issue fixed or it become critical for us.

Copy link
Collaborator

@edlng edlng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C# C# wrapper CI/CD CI/CD related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants