Skip to content
Snippets Groups Projects
Verified Commit f9c6e4e1 authored by Lars Bilke's avatar Lars Bilke
Browse files

[ci] Refactor wheel jobs to use template.

parent 81c35a6f
No related branches found
No related tags found
No related merge requests found
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/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment