Fix Chez workflow to run inside a container

Fixes #3730.

By running inside a container we avoid CI breakages caused by changes
in the VM base image. In any case, lso update to use base image
ubuntu-20.04.
This commit is contained in:
Paulo Matos 2021-03-16 09:37:49 +01:00
parent a484cd76e5
commit 84328615a1

View File

@ -16,8 +16,9 @@ on:
jobs:
build-linux:
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
container: ubuntu:20.04
strategy:
fail-fast: false
matrix:
@ -27,6 +28,10 @@ jobs:
MACH: ${{ matrix.mach }}
steps:
- name: Download base dependencies
run: |
apt-get update
apt-get install -y make git gcc
- uses: actions/checkout@v2
with:
fetch-depth: 50
@ -37,13 +42,13 @@ jobs:
- name: Install libs for 32-bit
if: matrix.mach == 'i3le' || matrix.mach == 'ti3le'
run: |
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install -y gcc-multilib lib32ncurses5-dev libx32ncurses5-dev libssl-dev:i386
dpkg --add-architecture i386
apt-get update
apt-get install -y gcc-multilib lib32ncurses-dev libssl-dev:i386
- name: Install libs for 64-bit
run: |
sudo apt-get update
sudo apt-get install -y libncurses5-dev libssl-dev
apt-get update
apt-get install -y libncurses5-dev libssl-dev libx11-dev
- name: Build Chez with PB boot files
working-directory: racket/src/ChezScheme
run: |