mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-04 04:41:35 +00:00
Fix Windows build, cleanup
This commit is contained in:
15
.github/workflows/build.yml
vendored
15
.github/workflows/build.yml
vendored
@@ -114,7 +114,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
cache.tar.xz
|
cache.tar.xz
|
||||||
key: gam-${{ matrix.jid }}-20240416
|
key: gam-${{ matrix.jid }}-20240526
|
||||||
|
|
||||||
- name: Untar Cache archive
|
- name: Untar Cache archive
|
||||||
if: matrix.goal == 'build' && steps.cache-python-ssl.outputs.cache-hit == 'true'
|
if: matrix.goal == 'build' && steps.cache-python-ssl.outputs.cache-hit == 'true'
|
||||||
@@ -207,12 +207,6 @@ jobs:
|
|||||||
GAM_ARCHIVE_ARCH="x86_64"
|
GAM_ARCHIVE_ARCH="x86_64"
|
||||||
WIX_ARCH="x64"
|
WIX_ARCH="x64"
|
||||||
CHOC_OPS=""
|
CHOC_OPS=""
|
||||||
elif [[ "${arch}" == "Win32" ]]; then
|
|
||||||
PYEXTERNALS_PATH="win32"
|
|
||||||
PYBUILDRELEASE_ARCH="Win32"
|
|
||||||
GAM_ARCHIVE_ARCH="x86"
|
|
||||||
WIX_ARCH="x86"
|
|
||||||
CHOC_OPS="--forcex86"
|
|
||||||
fi
|
fi
|
||||||
if [[ "${RUNNER_OS}" == "macOS" ]]; then
|
if [[ "${RUNNER_OS}" == "macOS" ]]; then
|
||||||
MAKE=make
|
MAKE=make
|
||||||
@@ -494,10 +488,8 @@ jobs:
|
|||||||
# remove pre-compiled bootloaders so we fail if bootloader compile fails
|
# remove pre-compiled bootloaders so we fail if bootloader compile fails
|
||||||
rm -rvf PyInstaller/bootloader/*-*/*
|
rm -rvf PyInstaller/bootloader/*-*/*
|
||||||
cd bootloader
|
cd bootloader
|
||||||
|
export PYINSTALLER_BUILD_ARGS=""
|
||||||
case "${arch}" in
|
case "${arch}" in
|
||||||
"Win32")
|
|
||||||
export PYINSTALLER_BUILD_ARGS="--target-arch=32bit"
|
|
||||||
;;
|
|
||||||
"Win64")
|
"Win64")
|
||||||
export PYINSTALLER_BUILD_ARGS="--target-arch=64bit"
|
export PYINSTALLER_BUILD_ARGS="--target-arch=64bit"
|
||||||
;;
|
;;
|
||||||
@@ -524,7 +516,7 @@ jobs:
|
|||||||
elif [[ "${RUNNER_OS}" == "Windows" ]]; then
|
elif [[ "${RUNNER_OS}" == "Windows" ]]; then
|
||||||
# Work around issue where PyInstaller picks up python3.dll from other Python versions
|
# Work around issue where PyInstaller picks up python3.dll from other Python versions
|
||||||
# https://github.com/pyinstaller/pyinstaller/issues/7102
|
# https://github.com/pyinstaller/pyinstaller/issues/7102
|
||||||
export PATH="/usr/bin"
|
export PATH="$(dirname ${PYTHON}):/usr/bin"
|
||||||
else
|
else
|
||||||
export gampath=$(realpath "${gampath}")
|
export gampath=$(realpath "${gampath}")
|
||||||
fi
|
fi
|
||||||
@@ -611,6 +603,7 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
GAM_ARCHIVE="gam-${GAMVERSION}-linux-$(arch)-${libver}.tar.xz"
|
GAM_ARCHIVE="gam-${GAMVERSION}-linux-$(arch)-${libver}.tar.xz"
|
||||||
fi
|
fi
|
||||||
|
echo "GAM Archive ${GAM_ARCHIVE}"
|
||||||
tar -C dist/ --create --verbose --exclude-from "${GITHUB_WORKSPACE}/.github/actions/package_exclusions.txt" --file $GAM_ARCHIVE --xz gam
|
tar -C dist/ --create --verbose --exclude-from "${GITHUB_WORKSPACE}/.github/actions/package_exclusions.txt" --file $GAM_ARCHIVE --xz gam
|
||||||
|
|
||||||
- name: Windows package
|
- name: Windows package
|
||||||
|
|||||||
Reference in New Issue
Block a user