-
-
Notifications
You must be signed in to change notification settings - Fork 888
Fix missing SDK version for test building it GitHub Workflow #1329
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
Conversation
|
Slight issue with it - seems that the |
|
I think we have to install both for each build now. |
|
Hmmmm, I was thinking going the other way, changing the Line 11 in d95a996
If that was building the test library, the test library would automatically build the main library. |
| uses: actions/setup-dotnet@v1 | ||
| with: | ||
| dotnet-version: "3.1.x" | ||
| dotnet-version: ${{matrix.options.sdkVersion}} |
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.
I can't figure out from the docs whether you can simply do. [ "2.1.x", "3.1.x" ]
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.
Digging through the TypeScript code for the action, it looks to only take string values. Internally, the value is getting passed into here: https://github.com/actions/setup-dotnet/blob/e3d81d94533f1e31c11d94a1fdf6f60f096a7bc5/src/installer.ts#L33
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.
Yeah, ran a quick test in the Web repo. Big fail
The Benchmark and ProfilingSandbox aren't used in testing as far as I know
|
I need to go get some sleep - I've pushed a change which tweaks what is built for the CI which may work around the issue. Its cool if this isn't the direction you want to go though. Hopefully it works! |
|
I don't think we need the "Setup DotNet SDK" step at all anymore, I believe all the sdks we need are all preinstalled on the images... we needed it in the past but I don't think we do anymore. |
@tocsoft You're right! |
|
Thanks for your help @Turnerj I ended up just pushing the fix in the other open PR. Turns out the new VMs have everything! https://github.com/actions/virtual-environments/releases |
|
Awesome - glad you got it working! |
See the build/test error in #1328 - this might patch around that neatly via using the matrix options. This PR is as much of a test of the concept.
Prerequisites
Description
Uses the options matrix to define the SDK version to install, thus hopefully guaranteeing the right version is installed for tests.