Skip to content

Commit

Permalink
CI(linux): switch LTS versions
Browse files Browse the repository at this point in the history
The 'old' is now 22.04 instead of 20.04, and 'new' is 24.04.

Some other changes that had to be done as a result of the
above change:
* Add DEBIAN_FRONTEND=noninteractive to an apt installation
to avoid a hang.
* Remove mono checks before installing mono (because new
github linux images for new LTS 24.04 don't have mono installed
by default anymore).
  • Loading branch information
knocte committed Jun 19, 2024
1 parent e21c92b commit 9f11873
Showing 1 changed file with 21 additions and 25 deletions.
46 changes: 21 additions & 25 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:
needs:
- sanity-check

runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
container:
image: "ubuntu:22.04"
image: "ubuntu:24.04"
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
steps:
Expand Down Expand Up @@ -51,11 +51,11 @@ jobs:
- linux-newLTS-github--dotnet-and-msbuild
- linux-newLTS-vanilla--stockmono
- linux-newLTS-vanilla--newmono
- linux-newLTS-vanilla--dotnet6
- linux-newLTS-vanilla--dotnet8
- windows--legacyFramework
- windows--dotnet6

runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v1
with:
Expand Down Expand Up @@ -147,7 +147,7 @@ jobs:
run: ./compileFSharpScripts.fsx

linux-oldLTS-github--dotnet-and-xbuild:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v1
- name: check mono version
Expand Down Expand Up @@ -178,7 +178,7 @@ jobs:
run: ./compileFSharpScripts.fsx

linux-oldLTS-github--dotnet-and-msbuild:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v1
- name: check mono version
Expand Down Expand Up @@ -209,15 +209,15 @@ jobs:
run: ./compileFSharpScripts.fsx

linux-oldLTS-vanilla--stockmono:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
container:
image: "ubuntu:20.04"
image: "ubuntu:22.04"
steps:
- uses: actions/checkout@v1
- name: install sudo
run: apt update && apt install --yes sudo
- name: install all dependencies
run: sudo apt install --yes git make curl fsharp nunit-console
run: sudo DEBIAN_FRONTEND=noninteractive apt install --yes git make curl fsharp nunit-console

# workaround for https://github.com/actions/runner/issues/2033
- name: ownership workaround
Expand Down Expand Up @@ -251,9 +251,9 @@ jobs:
run: ./compileFSharpScripts.fsx

linux-oldLTS-vanilla--newmono:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
container:
image: "ubuntu:20.04"
image: "ubuntu:22.04"
steps:
- uses: actions/checkout@v1
- name: install sudo
Expand Down Expand Up @@ -295,11 +295,9 @@ jobs:
run: ./compileFSharpScripts.fsx

linux-newLTS-github--dotnet-and-xbuild:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v1
- name: check mono version
run: mono --version
- name: install dependencies
run: sudo apt install --yes fsharp
- name: check mono version
Expand All @@ -326,11 +324,9 @@ jobs:
run: ./compileFSharpScripts.fsx

linux-newLTS-github--dotnet-and-msbuild:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v1
- name: check mono version
run: mono --version
- name: install last version of mono (Microsoft APT repositories)
run: sudo ./scripts/CI/install_mono_from_microsoft_deb_packages.sh
- name: check mono version
Expand All @@ -357,9 +353,9 @@ jobs:
run: ./compileFSharpScripts.fsx

linux-newLTS-vanilla--stockmono:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
container:
image: "ubuntu:22.04"
image: "ubuntu:24.04"
steps:
- uses: actions/checkout@v1
- name: install sudo
Expand Down Expand Up @@ -399,9 +395,9 @@ jobs:
run: ./compileFSharpScripts.fsx

linux-newLTS-vanilla--newmono:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
container:
image: "ubuntu:22.04"
image: "ubuntu:24.04"
steps:
- uses: actions/checkout@v1
- name: install sudo
Expand Down Expand Up @@ -442,16 +438,16 @@ jobs:
- name: compile this repo's .fsx scripts with fsx
run: ./compileFSharpScripts.fsx

linux-newLTS-vanilla--dotnet6:
runs-on: ubuntu-22.04
linux-newLTS-vanilla--dotnet8:
runs-on: ubuntu-24.04
container:
image: "ubuntu:22.04"
image: "ubuntu:24.04"
steps:
- uses: actions/checkout@v1
- name: install sudo
run: apt update && apt install --yes sudo
- name: install dependencies
run: sudo DEBIAN_FRONTEND=noninteractive apt install --yes git make dotnet6
run: sudo DEBIAN_FRONTEND=noninteractive apt install --yes git make dotnet8

# workaround for https://github.com/actions/runner/issues/2033
- name: ownership workaround
Expand Down

0 comments on commit 9f11873

Please sign in to comment.