Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Özgür Ozan Sen
ogs
Commits
f9c6e4e1
Verified
Commit
f9c6e4e1
authored
2 years ago
by
Lars Bilke
Browse files
Options
Downloads
Patches
Plain Diff
[ci] Refactor wheel jobs to use template.
parent
81c35a6f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/ci/jobs/build-wheels.yml
+15
-38
15 additions, 38 deletions
scripts/ci/jobs/build-wheels.yml
with
15 additions
and
38 deletions
scripts/ci/jobs/build-wheels.yml
+
15
−
38
View file @
f9c6e4e1
build wheels linux
:
.wheels_template
:
&wheels_template
stage
:
build
stage
:
build
needs
:
[
meta
]
needs
:
[
meta
]
tags
:
[
envinf3-shell
]
script
:
script
:
-
pipx run cibuildwheel
-
pipx run cibuildwheel
-
>
rules
:
pipx run twine upload
-
if
:
$CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
--repository-url https://gitlab.opengeosys.org/api/v4/projects/${CI_PROJECT_ID}/packages/pypi
-
if
:
$CI_COMMIT_TAG
--username gitlab-ci-token
--password ${CI_JOB_TOKEN}
wheelhouse/*
artifacts
:
artifacts
:
paths
:
paths
:
-
wheelhouse/
-
wheelhouse/
build wheels linux
:
tags
:
[
envinf3-shell
]
<<
:
*wheels_template
build wheels mac
:
build wheels mac
:
stage
:
build
needs
:
[
meta
]
tags
:
tags
:
-
mac
-
mac
-
${ARCHITECTURE}
-
${ARCHITECTURE}
script
:
variables
:
-
CMAKE_OSX_DEPLOYMENT_TARGET=10.15 pipx run cibuildwheel
CMAKE_OSX_DEPLOYMENT_TARGET
:
"
10.15"
-
>
pipx run twine upload
--repository-url https://gitlab.opengeosys.org/api/v4/projects/${CI_PROJECT_ID}/packages/pypi
--username gitlab-ci-token
--password ${CI_JOB_TOKEN}
wheelhouse/*
artifacts
:
paths
:
-
wheelhouse/
parallel
:
parallel
:
matrix
:
matrix
:
-
ARCHITECTURE
:
[
"
amd64"
,
"
arm64"
]
-
ARCHITECTURE
:
[
"
amd64"
,
"
arm64"
]
<<
:
*wheels_template
build wheels win
:
build wheels win
:
stage
:
build
tags
:
[
windows
]
needs
:
[
meta
]
extends
:
tags
:
-
.vs2019-environment
-
windows
<<
:
*wheels_template
extends
:
-
.vs2019-environment
script
:
-
pipx run cibuildwheel
-
>
pipx run twine upload
--repository-url https://gitlab.opengeosys.org/api/v4/projects/${CI_PROJECT_ID}/packages/pypi
--username gitlab-ci-token
--password ${CI_JOB_TOKEN}
wheelhouse/*
artifacts
:
paths
:
-
wheelhouse/
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment