Ubuntu 22.04 is now generally available on GitHub-hosted runners. To use it now, simply add runs-on: ubuntu-22.04
in your workflow file. Otherwise, our recommendation is to use ubuntu-latest
, which currently utilizes Ubuntu 20.04 but will begin running on Ubuntu 22.04 in the near future. This will ensure your workflows are always using a recent OS and removes the need to constantly update workflow files with image versions.
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
- name: Build
run: dotnet build
- name: Run tests
run: dotnet test
The Ubuntu 22.04 runner image has different tools and tool versions than Ubuntu 20.04.
Read more on available runner images and beta images terms of use in our documentation.