diff --git a/.github/workflows/build_cmake.yml b/.github/workflows/build_cmake.yml index 3eb9b6bee6..997887a196 100644 --- a/.github/workflows/build_cmake.yml +++ b/.github/workflows/build_cmake.yml @@ -264,7 +264,7 @@ jobs: fi # password exists - name: Create Mac and Windows Packages - if: matrix.config.os == 'windows-latest' || matrix.config.os == 'macos-latest' + if: matrix.config.os == 'windows-latest' || runner.os == 'macOS' shell: bash run: | if [ -z "${P12_PASSWORD}" ]; then diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index b48ec55200..9593e0cdad 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -13,7 +13,7 @@ env: # Need to do some setup before repairing the wheel on linux... CIBW_REPAIR_WHEEL_COMMAND_LINUX: bash scripts/github-actions/repair_command_linux.sh - CIBW_BEFORE_ALL_LINUX: yum install -y git eigen3-devel + CIBW_BEFORE_ALL_LINUX: bash scripts/github-actions/repair-linux.sh # Specify eigen location for windows CIBW_ENVIRONMENT_WINDOWS: "EXTRA_CMAKE_ARGS=-DEIGEN3_INCLUDE_DIR:PATH=/c/eigen" diff --git a/scripts/github-actions/repair-linux.sh b/scripts/github-actions/repair-linux.sh new file mode 100644 index 0000000000..624e596d79 --- /dev/null +++ b/scripts/github-actions/repair-linux.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash +set -ev + +# CentOS 7 is EOL so mirror.centos.org is offline +# https://serverfault.com/a/1161921 + +sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo +sed -i s/^#.*baseurl=http/baseurl=https/g /etc/yum.repos.d/*.repo +sed -i s/^mirrorlist=http/#mirrorlist=https/g /etc/yum.repos.d/*.repo + +yum install -y git eigen3-devel