Update build.yml

This commit is contained in:
Jay Lee
2021-11-22 15:41:05 -05:00
committed by GitHub
parent b75ad006f1
commit a47ef0e1f5

View File

@ -161,8 +161,13 @@ jobs:
echo "pip=$pip" >> $GITHUB_ENV
echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH" >> $GITHUB_ENV
echo -e "Python: $python\nPip: $pip\nLD_LIB...: $LD_LIBRARY_PATH"
$pip install --upgrade pip
$pip install wheel
if [ $GAMOS == "macos" ]; then
export pipoptions='--nobnary ":all:"'
export MACOSX_DEPLOYMENT_TARGET="10.9"
export CFLAGS="-arch arm64 -arch x86_64"
fi
$pip install --upgrade pip $pipoptions
$pip install wheel $pipoptions
export url="https://codeload.github.com/pyinstaller/pyinstaller/tar.gz/${PYINSTALLER_VERSION}"
echo "Downloading ${url}"
curl -o pyinstaller.tar.gz --compressed "${url}"
@ -180,7 +185,11 @@ jobs:
$python ./waf all $TARGETARCH
cd ..
fi
$pip install .
if [ $GAMOS == "macos" ]; then
$pip install pyinstaller $pipoptions
else
$pip install .
fi
#$python setup.py install
#$pip install pyinstaller
@ -188,9 +197,13 @@ jobs:
if: matrix.os != 'self-hosted'
run: |
set +e
$pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 $pip install -U --force-reinstall
$pip install --upgrade -r requirements.txt
if [ $GAMOS == "macos" ]; then
export pipoptions='--nobnary ":all:"'
export MACOSX_DEPLOYMENT_TARGET="10.9"
export CFLAGS="-arch arm64 -arch x86_64"
fi
$pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 $pip install -U --force-reinstall $pipoptions
$pip install --upgrade -r requirements.txt $pipoptions
- name: Build GAM with PyInstaller
if: matrix.goal != 'test'