|
9 | 9 | pull_request: |
10 | 10 | branches: |
11 | 11 | - '*' |
| 12 | + |
| 13 | + workflow_dispatch: |
12 | 14 |
|
13 | 15 | 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" |
18 | 21 | steps: |
19 | | - - uses: actions/checkout@v2 |
20 | 22 | - name: Dependencies |
21 | 23 | 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 |
24 | 64 | run: | |
25 | 65 | ./configure --profile=gnome |
26 | 66 | make |
0 commit comments