Skip to content

Commit

Permalink
GitHubCI: remove Ubuntu 20.04 lanes
Browse files Browse the repository at this point in the history
It is too old, no need to support two LTS versions (stable
branch still supports it though).
  • Loading branch information
knocte committed Oct 15, 2023
1 parent d971057 commit a164155
Showing 1 changed file with 14 additions and 153 deletions.
167 changes: 14 additions & 153 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ jobs:
find . -type f -name "*.fsx" | xargs -t -I {} dotnet fsxc {}
linux22-github--dotnet-and-mono:
linux-github--dotnet-and-mono:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v1
Expand All @@ -205,7 +205,7 @@ jobs:
- name: integration tests
run: make update-servers

linux22-github--dotnet-and-newmono:
linux-github--dotnet-and-newmono:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v1
Expand Down Expand Up @@ -235,7 +235,7 @@ jobs:
- name: integration tests
run: make update-servers

linux22-vanilla--stockmono-only:
linux-vanilla--stockmono-only:
runs-on: ubuntu-22.04
container:
image: "ubuntu:22.04"
Expand Down Expand Up @@ -275,7 +275,7 @@ jobs:
- name: integration tests
run: make update-servers

linux22-vanilla--stockdotnet6-only:
linux-vanilla--stockdotnet6-only:
runs-on: ubuntu-22.04
container:
image: "ubuntu:22.04"
Expand Down Expand Up @@ -317,7 +317,7 @@ jobs:
find . -type f -name "*.fsx" | xargs -t -I {} dotnet fsxc {}
linux22-vanilla--stockdotnet6-and-newmono:
linux-vanilla--stockdotnet6-and-newmono:
runs-on: ubuntu-22.04
container:
image: "ubuntu:22.04"
Expand Down Expand Up @@ -361,7 +361,7 @@ jobs:
find . -type f -name "*.fsx" | xargs -t -I {} dotnet fsxc {}
linux22-vanilla--stockdotnet6-and-stockmono:
linux-vanilla--stockdotnet6-and-stockmono:
runs-on: ubuntu-22.04
container:
image: "ubuntu:22.04"
Expand Down Expand Up @@ -404,7 +404,7 @@ jobs:
find . -type f -name "*.fsx" | xargs -t -I {} dotnet fsxc {}
linux22-vanilla--newmono-only:
linux-vanilla--newmono-only:
runs-on: ubuntu-22.04
container:
image: "ubuntu:22.04"
Expand Down Expand Up @@ -445,157 +445,18 @@ jobs:
- name: integration tests
run: make update-servers


linux20-github--dotnet-and-mono:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
with:
submodules: false
- name: install missing dependencies
run: sudo apt install --yes fsharp nunit-console
- name: check mono version
run: mono --version
- name: configure
run: ./configure.sh
- name: build in DEBUG mode
run: make
- name: sanity check
run: make sanitycheck
- name: unit tests
run: make check
- name: build in STRICT mode
run: git clean -fdx && ./configure.sh && make strict
- name: build in RELEASE mode
run: git clean -fdx && ./configure.sh && make release
- name: integration tests
run: make update-servers

linux20-github--dotnet-and-newmono:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- name: install missing dependencies
run: sudo apt install --yes fsharp nunit-console
- name: install last version of mono (Microsoft APT repositories)
run: sudo ./scripts/install_mono_from_microsoft_deb_packages.sh
- name: check mono version
run: mono --version
- name: install GTK libs (dependency of GTK frontend)
run: sudo apt install --yes libgtk2.0-cil-dev
- name: configure
run: ./configure.sh
- name: build in DEBUG mode (retry 3 times because of flakey XamForms restore)
# TODO: remove retry when we migrate to .NET6 (removing LEGACY_FRAMEWORK support)
run: make || make || make || make
- name: sanity check
run: make sanitycheck
- name: unit tests
run: make check
- name: build in STRICT mode
run: git clean -fdx && ./configure.sh && make strict
- name: build in RELEASE mode
run: git clean -fdx && ./configure.sh && make release
- name: integration tests
run: make update-servers

linux20-vanilla--stockmono-only:
runs-on: ubuntu-20.04
container:
image: "ubuntu:20.04"
steps:
- uses: actions/checkout@v1
# can't use the option below because of error "Input 'submodules' not supported when falling back to download using the GitHub REST API. To create a local Git repository instead, add Git 2.18 or higher to the PATH."
# with:
# submodules: 'true'

- name: install sudo
run: apt update && apt install --yes sudo
- name: install all dependencies
run: |
# needed by fsx submodule
sudo apt install --yes curl
sudo apt install --yes git make fsharp nunit-console
# workaround for https://github.com/actions/runner/issues/2033
- name: ownership workaround
run: git config --global --add safe.directory '*'

- name: check mono version
run: mono --version
- name: configure
run: ./configure.sh
- name: build in DEBUG mode
run: make
- name: sanity check
run: make sanitycheck
- name: unit tests
run: make check
- name: build in STRICT mode
run: git clean -fdx && ./configure.sh && make strict
- name: build in RELEASE mode
run: git clean -fdx && ./configure.sh && make release
- name: integration tests
run: make update-servers

linux20-vanilla--newmono-only:
runs-on: ubuntu-20.04
container:
image: "ubuntu:20.04"
steps:
- uses: actions/checkout@v1
# can't use the option below because of error "Input 'submodules' not supported when falling back to download using the GitHub REST API. To create a local Git repository instead, add Git 2.18 or higher to the PATH."
# with:
# submodules: 'true'

- name: install sudo
run: apt update && apt install --yes sudo
- name: install all dependencies
run: sudo apt install --yes git make fsharp nunit-console
- name: install last version of mono (Microsoft APT repositories)
run: sudo ./scripts/install_mono_from_microsoft_deb_packages.sh

# workaround for https://github.com/actions/runner/issues/2033
- name: ownership workaround
run: git config --global --add safe.directory '*'

- name: check mono version
run: mono --version
- name: install GTK libs (dependency of GTK frontend)
run: sudo apt install --yes libgtk2.0-cil-dev
- name: configure
run: ./configure.sh
- name: build in DEBUG mode (retry 3 times because of flakey XamForms restore)
# TODO: remove retry when we migrate to .NET6 (removing LEGACY_FRAMEWORK support)
run: make || make || make || make
- name: sanity check
run: make sanitycheck
- name: unit tests
run: make check
- name: build in STRICT mode
run: git clean -fdx && ./configure.sh && make strict
- name: build in RELEASE mode
run: git clean -fdx && ./configure.sh && make release
- name: integration tests
run: make update-servers

conventions:
runs-on: ubuntu-22.04
container:
image: "ubuntu:22.04"
needs:
- linux22-github--dotnet-and-mono
- linux22-github--dotnet-and-newmono
- linux22-vanilla--stockmono-only
- linux22-vanilla--newmono-only
- linux22-vanilla--stockdotnet6-only
- linux22-vanilla--stockdotnet6-and-stockmono
- linux22-vanilla--stockdotnet6-and-newmono
- linux20-github--dotnet-and-mono
- linux20-github--dotnet-and-newmono
- linux20-vanilla--stockmono-only
- linux20-vanilla--newmono-only
- linux-github--dotnet-and-mono
- linux-github--dotnet-and-newmono
- linux-vanilla--stockmono-only
- linux-vanilla--newmono-only
- linux-vanilla--stockdotnet6-only
- linux-vanilla--stockdotnet6-and-stockmono
- linux-vanilla--stockdotnet6-and-newmono
- windows--dotnet6-and-legacyFramework
- windows--legacyFramework-only
- windows--dotnet6-only
Expand Down

0 comments on commit a164155

Please sign in to comment.