Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
116 changes: 112 additions & 4 deletions .github/workflows/monodevelop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,124 @@ on:
- '*'

jobs:
linux:

runs-on: ubuntu-20.04
ubuntu2004:
runs-on: ubuntu-latest
container:
image: "ubuntu:20.04"
steps:
- name: Dependencies
run: |
apt-get update
apt-get install -y sudo
sudo apt-get update
sudo apt-get install -y wget
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get install -y apt-transport-https
sudo apt-get update
sudo apt-get install -y dotnet-sdk-3.1
sudo apt-get install -y gnupg ca-certificates
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt-get update
sudo apt-get install -y sed build-essential intltool fsharp gtk-sharp2
sudo apt-get install -y software-properties-common
sudo add-apt-repository ppa:git-core/ppa -y
Copy link
Member

Choose a reason for hiding this comment

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

the 20.04 build was working already without the need to depend on a PPA; I guess the PPA is needed only for the older ubuntu versions? if so, it's better to not add in this CI lane

Copy link
Member

Choose a reason for hiding this comment

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

@lextm confirmed, please remove the ppa line from the 20.04 build

sudo apt-get update
sudo apt-get install -y git
shell: bash
- uses: actions/checkout@v2
with:
submodules: true
- name: Verify toolchain versions
run: |
git --version
make --version
msbuild -version
shell: bash
- name: Configure and build
run: |
./configure --profile=gnome
make
shell: bash

ubuntu1804:
runs-on: ubuntu-latest
container:
image: ubuntu:18.04
steps:
- name: Dependencies
run: |
apt-get update
apt-get install -y sudo
sudo apt-get update
sudo apt-get install -y wget
wget https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get install -y apt-transport-https
sudo apt-get update
sudo apt-get install -y dotnet-sdk-3.1
sudo apt-get install -y gnupg ca-certificates
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt-get update
sudo apt-get install -y sed build-essential intltool fsharp gtk-sharp2
sudo apt-get install -y software-properties-common
sudo add-apt-repository ppa:git-core/ppa -y
sudo apt-get update
sudo apt-get install -y git
shell: bash
- uses: actions/checkout@v2
with:
submodules: true
- name: Verify toolchain versions
run: |
git --version
make --version
msbuild -version
shell: bash
- name: Configure and build
run: |
./configure --profile=gnome
make
shell: bash

ubuntu1604:
runs-on: ubuntu-latest
container:
image: ubuntu:16.04
steps:
- name: Dependencies
run: |
sudo apt install intltool fsharp gtk-sharp2
apt-get update
apt-get install -y sudo
sudo apt-get update
sudo apt-get install -y wget
wget https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get install -y apt-transport-https
sudo apt-get update
sudo apt-get install -y dotnet-sdk-3.1
sudo apt-get install -y gnupg ca-certificates
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb https://download.mono-project.com/repo/ubuntu stable-xenial main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt-get update
sudo apt-get install -y sed build-essential intltool fsharp gtk-sharp2
sudo apt-get install -y software-properties-common
sudo add-apt-repository ppa:git-core/ppa -y
sudo apt-get update
sudo apt-get install -y git
- uses: actions/checkout@v2
with:
submodules: true
- name: Verify toolchain versions
run: |
git --version
make --version
msbuild -version
shell: bash
- name: Configure and build
run: |
./configure --profile=gnome
make
shell: bash
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ MSBUILD_LIBRARIES=Microsoft.Build.dll Microsoft.Build.Framework.dll Microsoft.Bu
MSBUILD_DLLS=$(patsubst %, $(MSBUILD_PATH)/%, $(MSBUILD_LIBRARIES))

# Set $PATH to point to provisioned .NET Core and avoid the ones provisioned by VSTS itself
all: export PATH:="/usr/local/share/dotnet:$(PATH)"
all: export PATH:=/usr/local/share/dotnet:$(PATH)
all: print_config update_submodules all-recursive

GIT_FOUND = $$(echo $$(which git))
Expand Down