-
Notifications
You must be signed in to change notification settings - Fork 32
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
Support C# 12 by installing .NET 8 SDK in the Ubuntu pipeline #112
Conversation
appveyor.yml
Outdated
- Ubuntu | ||
- Ubuntu2204 | ||
|
||
init: |
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.
Per https://www.appveyor.com/docs/build-configuration/#build-pipeline init
runs first.
@@ -2,7 +2,12 @@ version: 1.0.{build} | |||
|
|||
image: | |||
- Visual Studio 2022 | |||
- Ubuntu | |||
- Ubuntu2204 |
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.
appveyor.yml
Outdated
- Ubuntu2204 | ||
|
||
init: | ||
- sh: > |
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.
sh:
https://www.appveyor.com/docs/getting-started-with-appveyor-for-linux/#bash-and-powershell
To run Bash command either put it with
sh:
prefix
>
One of the many ways YAML does multi-line strings (folded style).
@madelson No transient failures this time! |
Motivation
The current
Ubuntu
pipeline doesn't have .NET 8 SDK installed.Background
According to https://www.appveyor.com/docs/linux-images-software/, we're currently using Ubuntu 18.04 (image name:
Ubuntu
) in the CI pipeline.However, .NET 8 SDK is not installed in any of default Ubuntu images according to the same page. Until appveyor/ci#3908 is complete, we'll need to install .NET SDK manually.
However, you cannot install .NET 8 on Ubuntu 18.04 per https://learn.microsoft.com/en-us/dotnet/core/install/linux-ubuntu-1804.
Changes in the PR
Updated the image to the latest Ubuntu version (that's supported in AppVeyor) 22.04 and manually installing .NET 8 SDK per https://learn.microsoft.com/en-us/dotnet/core/install/linux-ubuntu-2204.
Testing