[ci] Add windows build
This commit is contained in:
parent
728887b432
commit
d2eee573b1
@ -20,9 +20,12 @@ prepare:
|
||||
before_script:
|
||||
- pip install setuptools_scm>=6.2
|
||||
script:
|
||||
- PYTHON_VERSION=$(python --version | cut -d " " -f2)
|
||||
- echo "PYTHON_VERSION=${PYTHON_VERSION}" | tee -a build.env
|
||||
- VERSION=$(python -m setuptools_scm)
|
||||
- echo "VERSION=${VERSION}" | tee -a build.env
|
||||
- echo "LINUX_AMD64_BINARY=fime_linux_amd64_${VERSION}" | tee -a build.env
|
||||
- echo "WINDOWS_AMD64_BINARY=fime_windows_amd64_${VERSION}" | tee -a build.env
|
||||
- echo "PACKAGE_REGISTRY_URL=${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/fime/${VERSION}" | tee -a build.env
|
||||
artifacts:
|
||||
reports:
|
||||
@ -42,6 +45,24 @@ package_linux:
|
||||
- dist/*.whl
|
||||
- dist/fime_linux_*
|
||||
|
||||
package_windows:
|
||||
stage: build
|
||||
tags:
|
||||
- shared-windows
|
||||
- windows
|
||||
- windows-1809
|
||||
before_script:
|
||||
- choco install python --version=$PYTHON_VERSION -y
|
||||
- refreshenv
|
||||
- python --version
|
||||
- pip install pipenv
|
||||
- pipenv sync --dev
|
||||
script:
|
||||
- pipenv run pyinstaller --onefile --name "${WINDOWS_AMD64_BINARY}" src/fime/main.py
|
||||
artifacts:
|
||||
paths:
|
||||
- dist/fime_windows_*
|
||||
|
||||
upload:
|
||||
stage: deploy
|
||||
image: curlimages/curl:latest
|
||||
|
Loading…
Reference in New Issue
Block a user