From 4abf7b5fa7a8203e8f31db0f222b3a3b6f9a93a2 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sat, 23 Dec 2023 18:40:18 +0100 Subject: [PATCH] try to use same file version as host Signed-off-by: falkTX --- .github/workflows/bootstrap.yml | 31 +++++++++++++++---------------- setup/versions.sh | 8 +++++++- 2 files changed, 22 insertions(+), 17 deletions(-) diff --git a/.github/workflows/bootstrap.yml b/.github/workflows/bootstrap.yml index 6ea40bb..de206fc 100644 --- a/.github/workflows/bootstrap.yml +++ b/.github/workflows/bootstrap.yml @@ -681,22 +681,21 @@ jobs: matrix: include: # ubuntu:20.04 - # FIXME Cannot use the installed version of file (5.38) to cross-compile file 5.34 - #- target: linux-aarch64 - #container: ubuntu:20.04 - #os: ubuntu-latest - #- target: linux-armhf - #container: ubuntu:20.04 - #os: ubuntu-latest - #- target: linux-i686 - #container: ubuntu:20.04 - #os: ubuntu-latest - #- target: linux-riscv64 - #container: ubuntu:20.04 - #os: ubuntu-latest - #- target: linux-x86_64 - #container: ubuntu:20.04 - #os: ubuntu-latest + - target: linux-aarch64 + container: ubuntu:20.04 + os: ubuntu-latest + - target: linux-armhf + container: ubuntu:20.04 + os: ubuntu-latest + - target: linux-i686 + container: ubuntu:20.04 + os: ubuntu-latest + - target: linux-riscv64 + container: ubuntu:20.04 + os: ubuntu-latest + - target: linux-x86_64 + container: ubuntu:20.04 + os: ubuntu-latest - target: macos-universal-10.15 os: macos-11 - target: wasm diff --git a/setup/versions.sh b/setup/versions.sh index e2ad115..a328b9b 100644 --- a/setup/versions.sh +++ b/setup/versions.sh @@ -147,9 +147,15 @@ QT5_URL=https://download.qt.io/new_archive/qt/${QT5_MVERSION}/${QT5_VERSION}/sub # --------------------------------------------------------------------------------------------------------------------- # bootstrap carla stuff -FILE_VERSION=5.34 FILE_URL=ftp://ftp.astron.com/pub/file +# try to use same version as host +if [ "${LINUX}" -eq 1 ] && [ -e /usr/bin/file ]; then + FILE_VERSION=$(/usr/bin/file -v | awk 'sub("file-","")') +else + FILE_VERSION=5.34 +fi + if [ "${LINUX}" -eq 1 ] || [ "${MACOS_UNIVERSAL}" -eq 1 ]; then CXFREEZE_VERSION=a59a0f6c476554c1a789de2a9f6f77329d6a6dd1 # 6.8.4 PYTHON_VERSION=3.9.5