From db92e59f27ff78f5960d08368df006db3b1df0ff Mon Sep 17 00:00:00 2001 From: Mary Date: Sat, 1 May 2021 12:04:16 +0200 Subject: [PATCH] ci: Build on ubuntu 18.04 for Linux This is to ensure we have an old enough glibc to be compatible wih ancient version of it. --- .github/workflows/build.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7d0bcc7..1325b2b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,8 +19,8 @@ jobs: - { name: win-x64, os: windows-latest, flags: -A x64 } - { name: win-x86, os: windows-latest, flags: -A Win32 } - { name: win-arm64, os: windows-latest, flags: -A ARM64 } - - { name: linux-x64, os: ubuntu-20.04, flags: -GNinja , target_apt_arch: ":amd64" } - - { name: linux-x86, os: ubuntu-20.04, flags: -GNinja, cmake_configure_env: CFLAGS=-m32 CXXFLAGS=-m32, target_apt_arch: ":i386" } + - { name: linux-x64, os: ubuntu-18.04, flags: -GNinja , target_apt_arch: ":amd64" } + - { name: linux-x86, os: ubuntu-18.04, flags: -GNinja, cmake_configure_env: CFLAGS=-m32 CXXFLAGS=-m32, target_apt_arch: ":i386" } - { name: osx-x64, os: macos-latest, flags: -DCMAKE_OSX_ARCHITECTURES="x86_64" -DCMAKE_OSX_DEPLOYMENT_TARGET="10.14" } # NOTE: macOS 11.0 is the first released supported by Apple Silicon. - { name: osx-arm64, os: macos-latest, flags: -DCMAKE_OSX_ARCHITECTURES="arm64" -DCMAKE_OSX_DEPLOYMENT_TARGET="11.0" } @@ -30,6 +30,7 @@ jobs: run: | # TODO: only run this command on i386 sudo dpkg --add-architecture i386 + sudo add-apt-repository ppa:team-xbmc/ppa sudo apt-get update -y -qq sudo apt-get install wayland-protocols${{ matrix.platform.target_apt_arch }} \ pkg-config${{ matrix.platform.target_apt_arch }} \