mirror of
https://github.com/GAM-team/GAM.git
synced 2025-07-09 06:03:35 +00:00
Update build.yml
This commit is contained in:
25
.github/workflows/build.yml
vendored
25
.github/workflows/build.yml
vendored
@ -161,8 +161,13 @@ jobs:
|
|||||||
echo "pip=$pip" >> $GITHUB_ENV
|
echo "pip=$pip" >> $GITHUB_ENV
|
||||||
echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH" >> $GITHUB_ENV
|
echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH" >> $GITHUB_ENV
|
||||||
echo -e "Python: $python\nPip: $pip\nLD_LIB...: $LD_LIBRARY_PATH"
|
echo -e "Python: $python\nPip: $pip\nLD_LIB...: $LD_LIBRARY_PATH"
|
||||||
$pip install --upgrade pip
|
if [ $GAMOS == "macos" ]; then
|
||||||
$pip install wheel
|
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}"
|
export url="https://codeload.github.com/pyinstaller/pyinstaller/tar.gz/${PYINSTALLER_VERSION}"
|
||||||
echo "Downloading ${url}"
|
echo "Downloading ${url}"
|
||||||
curl -o pyinstaller.tar.gz --compressed "${url}"
|
curl -o pyinstaller.tar.gz --compressed "${url}"
|
||||||
@ -180,7 +185,11 @@ jobs:
|
|||||||
$python ./waf all $TARGETARCH
|
$python ./waf all $TARGETARCH
|
||||||
cd ..
|
cd ..
|
||||||
fi
|
fi
|
||||||
$pip install .
|
if [ $GAMOS == "macos" ]; then
|
||||||
|
$pip install pyinstaller $pipoptions
|
||||||
|
else
|
||||||
|
$pip install .
|
||||||
|
fi
|
||||||
#$python setup.py install
|
#$python setup.py install
|
||||||
#$pip install pyinstaller
|
#$pip install pyinstaller
|
||||||
|
|
||||||
@ -188,9 +197,13 @@ jobs:
|
|||||||
if: matrix.os != 'self-hosted'
|
if: matrix.os != 'self-hosted'
|
||||||
run: |
|
run: |
|
||||||
set +e
|
set +e
|
||||||
$pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 $pip install -U --force-reinstall
|
if [ $GAMOS == "macos" ]; then
|
||||||
|
export pipoptions='--nobnary ":all:"'
|
||||||
$pip install --upgrade -r requirements.txt
|
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
|
- name: Build GAM with PyInstaller
|
||||||
if: matrix.goal != 'test'
|
if: matrix.goal != 'test'
|
||||||
|
Reference in New Issue
Block a user