Skip to content

Commit f0019a0

Browse files
authored
Merge pull request #65 from hwthomas/fix_CI_env
Install full software environment explicitly into the CI rather than rely …
2 parents bb090e8 + 89baf76 commit f0019a0

1 file changed

Lines changed: 47 additions & 7 deletions

File tree

.github/workflows/monodevelop.yml

Lines changed: 47 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,58 @@ on:
99
pull_request:
1010
branches:
1111
- '*'
12+
13+
workflow_dispatch:
1214

1315
jobs:
14-
linux:
15-
16-
runs-on: ubuntu-20.04
17-
16+
ubuntu2004:
17+
runs-on: ubuntu-latest
18+
container:
19+
# This is (currently) the cached docker image SHA256:aba80b77...40417fe dated 17/06/2021
20+
image: "ubuntu:20.04"
1821
steps:
19-
- uses: actions/checkout@v2
2022
- name: Dependencies
2123
run: |
22-
sudo apt install intltool fsharp gtk-sharp2
23-
- name: Configure and build
24+
# Install extra ubuntu packages
25+
apt-get update
26+
apt-get install -y sudo
27+
sudo apt-get update
28+
# Install dotnet-sdk packages
29+
sudo apt-get install -y wget
30+
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
31+
sudo dpkg -i packages-microsoft-prod.deb
32+
sudo apt-get install -y apt-transport-https
33+
sudo apt-get update
34+
sudo apt-get install -y dotnet-sdk-3.1
35+
# Install mono and msbuild
36+
sudo apt-get install -y gnupg ca-certificates
37+
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
38+
# Reference mono and msbuild from stable repo for versions 6.12.0.122 (mono) and 16.6.0.15201 (msbuild)
39+
echo "deb https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
40+
# Reference mono and msbuild from preview repo for versions 6.12.0.147 (mono) and 16.10.1 (msbuild)
41+
# echo "deb https://download.mono-project.com/repo/ubuntu preview-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-preview.list
42+
sudo apt-get update
43+
# Install mono-complete and ca-certificates-mono
44+
sudo apt-get install -y mono-complete ca-certificates-mono
45+
# Synchronise Mono SSL certs
46+
cert-sync /etc/ssl/certs/ca-certificates.crt
47+
# Install extra packages required for dotdevelop build
48+
sudo apt-get install -y sed git build-essential intltool nuget fsharp gtk-sharp2
49+
sudo apt-get install -y software-properties-common
50+
sudo apt-get update
51+
- name: Verify OS and tools versions
52+
run: |
53+
uname -a
54+
git --version
55+
make --version
56+
mono -V
57+
msbuild -version
58+
dotnet --info
59+
# Checkout, configure and build
60+
- uses: actions/checkout@v2
61+
with:
62+
submodules: true
63+
- name: Checkout configure and build
2464
run: |
2565
./configure --profile=gnome
2666
make

0 commit comments

Comments
 (0)