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

Support C# 12 by installing .NET 8 SDK in the Ubuntu pipeline #112

Merged
merged 4 commits into from
May 12, 2024

Conversation

Bartleby2718
Copy link

@Bartleby2718 Bartleby2718 commented Mar 10, 2024

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

appveyor.yml Outdated
- Ubuntu
- Ubuntu2204

init:
Copy link
Author

Choose a reason for hiding this comment

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

@@ -2,7 +2,12 @@ version: 1.0.{build}

image:
- Visual Studio 2022
- Ubuntu
- Ubuntu2204
Copy link
Author

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: >
Copy link
Author

Choose a reason for hiding this comment

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

  1. 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

  1. >

One of the many ways YAML does multi-line strings (folded style).

@Bartleby2718 Bartleby2718 marked this pull request as ready for review March 11, 2024 00:34
@Bartleby2718
Copy link
Author

@madelson No transient failures this time!

@madelson madelson merged commit c27d1f1 into madelson:release-1.7 May 12, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants