From 2780ad2edc45b5d1e4446c56dffb1bc3995fafb0 Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Thu, 3 Mar 2022 17:15:20 -0500 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b8c9c53e..979193c9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -171,8 +171,7 @@ jobs: PERL=perl echo "MACOSX_DEPLOYMENT_TARGET=10.15" >> $GITHUB_ENV echo "PYTHON=${PYTHON_INSTALL_PATH}/bin/python3" >> $GITHUB_ENV - echo 'PIP_ARGS=--no-binary=:all:' >> $GITHUB_ENV - elif [[ "${RUNNER_OS}" == "Linux" ]]; then + Felif [[ "${RUNNER_OS}" == "Linux" ]]; then MAKE=make MAKEOPT="-j$(nproc)" PERL=perl @@ -415,12 +414,17 @@ jobs: - name: Install pip requirements run: | set +e - "${PYTHON}" -m pip install --upgrade -r requirements.txt ${PIP_ARGS} --verbose + "${PYTHON}" -m pip install --upgrade -r requirements.txt "${PYTHON}" -m pip list if [[ "${RUNNER_OS}" == "macOS" ]]; then - find $PYTHON_INSTALL_PATH/lib/python3.10/site-packages -type f -name "*.so" -exec file "{}" \; + "${PYTHON}" -m pip download --only-binary :all: \ + --dest . \ + --no-cache \ + --no-deps \ + --platform macosx_10_15_universal2 \ + cryptography + "${PYTHON}" -m pip install --force cryptography*.whl find $PYTHON_INSTALL_PATH/lib/python3.10/site-packages -type f -name "*.so" -exec du -sh "{}" \; - fi - name: Build GAM with PyInstaller