-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build WMCore services (except for t0 right now, due to name conflicts…
…) and publish them to pypy, using tag pushes
- Loading branch information
Kenyi Hurtado
committed
Oct 5, 2022
1 parent
2d3f8d8
commit c0e98c1
Showing
2 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# This workflow will build and upload WMCore core services to the production PYPY | ||
# based on tag releases | ||
|
||
on: | ||
push: | ||
tags: | ||
- 2.** | ||
|
||
jobs: | ||
build_and_publish_services: | ||
strategy: | ||
matrix: | ||
target: [wmagent, wmagent-devtools, wmcore, reqmon, reqmgr2, reqmgr2ms, global-workqueue, acdcserver] | ||
uses: ./.github/workflows/pypy_build_publish_template.yaml | ||
with: | ||
wmcore_component: ${{ matrix.target }} | ||
secrets: | ||
pypy_token: ${{ secrets.PYPY_PRODUCTION }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Reusable workflow to setup a specific WMCore component for pip | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
wmcore_component: | ||
required: true | ||
type: string | ||
secrets: | ||
pypy_token: | ||
required: true | ||
|
||
jobs: | ||
build_and_publish_from_template: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup python 3.8 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.8" | ||
- name: Upgrade pip3 | ||
run: | | ||
python3 -m pip install --upgrade pip | ||
- name: Update the setup script template with package name | ||
run: | | ||
sed "s/PACKAGE_TO_BUILD/${{ inputs.wmcore_component }}/" setup_template.py > setup.py | ||
- name: Create requirements file | ||
run: | | ||
cp requirements.txt requirements.wmcore.txt | ||
awk "/(${{ inputs.wmcore_component }}$)|(${{ inputs.wmcore_component }},)/ {print \$1}" requirements.wmcore.txt > requirements.txt | ||
- name: Build sdist | ||
run: python setup.py clean sdist | ||
- name: Publish component | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.pypy_token }} |