Skip to content

Commit 486682b

Browse files
committed
Update azure-pipelines.yml for Azure Pipelines
1 parent 671d27e commit 486682b

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

azure-pipelines.yml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,33 +31,39 @@ jobs:
3131
# root_dir: ./
3232
# python_version: 3.12
3333
# pipenv_version: 2023.12.1
34-
- job: set_versions
35-
# dependsOn: PythonTest
34+
- job: build_package
35+
# dependsOn: set_versions
36+
displayName: Build Package
3637
steps:
3738
- task: gitversion/setup@0
3839
displayName: Install GitVersion
3940
inputs:
4041
versionSpec: 5.x
4142
- task: gitversion/execute@0
4243
displayName: Use GitVersion
43-
- job: build_glibc_2_31
44-
dependsOn: set_versions
44+
- script: |
45+
set -x
46+
export PATH=$PATH:/home/vsts_azpcontainer/.local/bin
47+
pip install pipx && pipx install poetry
48+
poetry version $(GitVersion.SemVer)
49+
poetry install
50+
poetry build
51+
poetry config pypi-token.pypi $(pypi_token)
52+
poetry publish
53+
- job: build_glibc_2_28
54+
dependsOn: build_package
4555
container: python:3.9.17-buster
46-
displayName: Build for GLIBC 2.
56+
displayName: Build for GLIBC 2.28
4757
steps:
4858
- script: |
4959
set -x
5060
export PATH=$PATH:/home/vsts_azpcontainer/.local/bin
5161
pip install pipx && pipx install poetry
52-
poetry version $SEMVER
5362
poetry self add "poetry-pyinstaller-plugin[plugin]"
5463
poetry install
5564
poetry build
5665
poetry config pypi-token.pypi $(pypi_token)
57-
poetry publish
58-
cp ./dist/pyinstaller/manylinux_2_31_x86_64/croudtech-boostrap $(Build.ArtifactStagingDirectory)/croudtech-bootstrap
59-
env:
60-
SEMVER: $(GitVersion.SemVer)
66+
cp ./dist/pyinstaller/manylinux_2_28_x86_64/croudtech-boostrap $(Build.ArtifactStagingDirectory)/croudtech-bootstrap-debian-bullseye
6167
- task: PublishBuildArtifacts@1
6268
inputs:
6369
PathtoPublish: "$(Build.ArtifactStagingDirectory)/croudtech-bootstrap-debian-bullseye"

0 commit comments

Comments
 (0)