From 67f9c092d232ba9d476523519967aa7716712f66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Behmo?= Date: Thu, 5 Jan 2023 12:02:39 +0100 Subject: [PATCH] ci: backward compatible Tutor binary releases Tutor binary releases were no longer compatible with Ubuntu 20.04 since the ubuntu-latest image was 22.04 on GitHub. The error was: [7893] Error loading Python lib '/tmp/_MEIcyvkMV/libpython3.7m.so.1.0': dlopen: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.35' not found (required by /tmp/_MEIcyvkMV/libpython3.7m.so.1.0) We fix this issue by downgrading the GitHub image with which we make the release. Close #765. --- .github/workflows/release.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3bf7259..d5dcd12 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,7 +3,7 @@ # act --secret GITHUB_TOKEN=... --job release # # https://github.com/nektos/act/ -# To generate a token: https://github.com/settings/tokens +# To generate a token: https://github.com/settings/tokens (add r/w permissions for "Contents") name: Release on: @@ -18,11 +18,14 @@ jobs: matrix: include: # https://github.com/actions/runner-images#available-images - - os: ubuntu-latest + # It's important that we build the tutor binaries with the *oldest* possible + # OS releases and Python version. See these docs for more information: + # https://pyinstaller.org/en/stable/usage.html#making-gnu-linux-apps-forward-compatible + - os: ubuntu-20.04 locale: C.UTF-8 gh_os: linux # https://endoflife.date/macos - - os: macos-latest + - os: macos-10.15 locale: en_US.UTF-8 gh_os: macOs env: