|
31 | 31 | # root_dir: ./ |
32 | 32 | # python_version: 3.12 |
33 | 33 | # pipenv_version: 2023.12.1 |
34 | | - - job: build_package |
35 | | - # dependsOn: set_versions |
36 | | - displayName: Build Package |
37 | | - steps: |
38 | | - - task: gitversion/setup@0 |
39 | | - displayName: Install GitVersion |
40 | | - inputs: |
41 | | - versionSpec: 5.x |
42 | | - - task: gitversion/execute@0 |
43 | | - displayName: Use GitVersion |
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 | | - cp -R ./dist $(Build.ArtifactStagingDirectory)/dist |
53 | | - - task: PublishBuildArtifacts@1 |
54 | | - inputs: |
55 | | - PathtoPublish: "$(Build.ArtifactStagingDirectory)/dist" |
56 | | - ArtifactName: "dist" |
57 | | - publishLocation: "Container" |
58 | 34 | - job: build_glibc_2_28 |
59 | | - dependsOn: build_package |
| 35 | + # dependsOn: PythonTest |
60 | 36 | container: python:3.9.17-buster |
61 | 37 | displayName: Build for GLIBC 2.28 |
62 | 38 | steps: |
@@ -94,32 +70,34 @@ jobs: |
94 | 70 | ArtifactName: "croudtech-bootstrap" |
95 | 71 | publishLocation: "Container" |
96 | 72 |
|
97 | | - - job: GithubRelease |
| 73 | + - job: BuildGithubRelease |
98 | 74 | dependsOn: build_glibc_latest |
99 | | - displayName: GithubRelease |
| 75 | + displayName: Build and GithubRelease |
100 | 76 | steps: |
101 | 77 | - download: current |
102 | 78 | artifact: croudtech-bootstrap-debian-bullseye |
103 | 79 | - download: current |
104 | 80 | artifact: croudtech-bootstrap |
105 | | - - download: current |
106 | | - artifact: dist |
107 | 81 | - task: UsePythonVersion@0 |
108 | 82 | name: set_python_version |
109 | 83 | displayName: Set Python Version |
110 | 84 | inputs: |
111 | 85 | versionSpec: '$(python_version)' |
112 | 86 | addToPath: true |
113 | 87 | architecture: x64 |
| 88 | + - task: gitversion/setup@0 |
| 89 | + displayName: Install GitVersion |
| 90 | + inputs: |
| 91 | + versionSpec: 5.x |
| 92 | + - task: gitversion/execute@0 |
| 93 | + displayName: Use GitVersion |
114 | 94 | - script: | |
115 | 95 | set -x |
116 | | - cp $(Pipeline.Workspace)/dist/dist $(Build.ArtifactStagingDirectory) ./dist |
117 | 96 | export PATH=$PATH:/home/vsts_azpcontainer/.local/bin |
118 | 97 | pip install pipx && pipx install poetry |
119 | 98 | poetry version $(GitVersion.SemVer) |
120 | | - poetry self add "poetry-pyinstaller-plugin[plugin]" |
121 | 99 | poetry install |
122 | | - cp $(Pipeline.Workspace)/dist/dist $(Build.ArtifactStagingDirectory) |
| 100 | + poetry build |
123 | 101 | poetry publish |
124 | 102 | cp $(Pipeline.Workspace)/croudtech-bootstrap/croudtech-bootstrap $(Build.ArtifactStagingDirectory) |
125 | 103 | cp $(Pipeline.Workspace)/croudtech-bootstrap-debian-bullseye/croudtech-bootstrap-debian-bullseye $(Build.ArtifactStagingDirectory) |
|
0 commit comments