Update build.yml

This commit is contained in:
Jay Lee
2022-01-25 10:52:58 -05:00
committed by GitHub
parent c8f13eedbc
commit 704fd3bea8

View File

@@ -9,6 +9,7 @@ on:
defaults:
run:
shell: bash
path: src
env:
OPENSSL_CONFIG_OPTS: no-asm no-fips
@@ -74,8 +75,8 @@ jobs:
uses: actions/cache@v2
with:
path: |
./python
./ssl
../python
../ssl
key: ${{ matrix.jid }}-20220125
- name: Use pre-compiled Python for testing
@@ -93,8 +94,8 @@ jobs:
run: |
export PYTHON=$(which python3)
export PIP=$(which pip3)
export gam="${PYTHON} -m src.gam"
export gampath="$(readlink -e src/)"
export gam="${PYTHON} -m gam"
export gampath="$(readlink -e .)"
echo -e "PYTHON: ${PYTHON}\nPIP: ${PIP}\gam: ${gam}\ngampath: ${gampath}"
echo "PYTHON=${PYTHON}" >> $GITHUB_ENV
echo "PIP=${PIP}" >> $GITHUB_ENV
@@ -184,6 +185,7 @@ jobs:
cd "${OPENSSL_SOURCE_PATH}"
# --libdir=lib is needed so Python can find OpenSSL libraries
"${PERL}" ./Configure "${OPENSSL_CONFIG_TARGET}" --libdir=lib --prefix="${OPENSSL_INSTALL_PATH}" $OPENSSL_CONFIG_OPTS
- name: Rename GNU link on Windows
if: matrix.goal == 'build' && matrix.os == 'windows-2022' && steps.cache-python-ssl.outputs.cache-hit != 'true'
shell: bash
@@ -325,7 +327,7 @@ jobs:
run: |
set +e
"${PYTHON}" -m pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 $PYTHON -m pip install -U --force-reinstall
"${PYTHON}" -m pip install --upgrade -r src/requirements.txt
"${PYTHON}" -m pip install --upgrade -r requirements.txt
- name: Build GAM with PyInstaller
if: matrix.goal != 'test'