Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Update/Add Ubuntu 21.04 VM #4011

Closed
1 of 10 tasks
jerabaul29 opened this issue Sep 2, 2021 · 6 comments
Closed
1 of 10 tasks

Update/Add Ubuntu 21.04 VM #4011

jerabaul29 opened this issue Sep 2, 2021 · 6 comments

Comments

@jerabaul29
Copy link

Tool name

provide Ubuntu 21.04

Tool license

Ubuntu

Add or update?

  • Add
  • Update

Desired version

21.04

Approximate size

No response

Brief description of tool

Not sure it this is the right place to ask - if not, let me know where I should ask for it :) - but I was wondering if it would be possible to get support also for the latest "non LTS" Ubuntu.

User case: in my case (I guess I am not alone), I cannot run the tests I want for the latest version of one of my package using Ubuntu 20.04, because of the "old" versions of packages available there that are not enough to run my code. For now I perform testing on my personal Ubuntu 21.04 laptop, but would be very convenient to be able to have actions for these tests too :) . The issue I see, having no "non LTS" test environment, is that it means that it takes 2 years before being able to run tests with "recent" Ubuntu packages, which is a really slow down on testing with actions.

URL for tool's homepage

No response

Provide a basic test case to validate the tool's functionality.

No response

Virtual environments affected

  • Ubuntu 16.04
  • Ubuntu 18.04
  • Ubuntu 20.04
  • macOS 10.15
  • macOS 11
  • Windows Server 2016
  • Windows Server 2019
  • Windows Server 2022

Can this tool be installed during the build?

No response

Tool installation time in runtime

No response

Are you willing to submit a PR?

No response

@MehdiChinoune
Copy link

You can use container

jobs:
  build:
    name: ubuntu 21.04
    runs-on: ubuntu-20.04
    container: ubuntu:21.04

see:
https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idcontainer
https://hub.docker.com/_/ubuntu

@jerabaul29
Copy link
Author

Aah, thanks.

Just wondering: this is running an ubuntu 21.04 container, inside an ubuntu 20.04 VM, right? Is this not a lot of unneeded overhead / load on the data center and potentially introducing some delays on my tests?

@jerabaul29
Copy link
Author

Mmmh, I went through the links, not clear how to use it to me. Do you know of a real world example of running tests this way?

@MehdiChinoune
Copy link

Mmmh, I went through the links, not clear how to use it to me. Do you know of a real world example of running tests this way?

Unlike github-actions images, ubuntu:21.04 container comes with minimal preinstalled programs, you have to install the prerequisties yourself. Beside that, there is no difference as you can use the same syntax.

@maxim-lobanov
Copy link
Contributor

Hello @jerabaul29 , we don't have plans to add Ubuntu 21.04. Our policy is supporting only LTS versions of Ubuntu.
The recommended solution is using docker container as it was suggested above.
The workflow steps shouldn't differ. You are only need to specify container property to YAML.

A few links that can be helpful:

@jerabaul29
Copy link
Author

Thanks, that worked well. As you say, the container for 21.04 is very barebone, a bit painful to get to work, but works in the end, thanks!

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

4 participants