-
Notifications
You must be signed in to change notification settings - Fork 73
51 lines (49 loc) · 1.64 KB
/
build_linux_manywheel.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Build+Upload Manylinux2014 Python Wheels
on:
push:
branches:
- master
tags:
- '*'
pull_request:
branches:
- master
jobs:
build_linux_wheels:
name: Build manylinux2014 Wheels
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Update RCS keywords
shell: bash
run: |
printf '\n[filter "rcs-keywords"]\n\tclean = .git_filters/rcs-keywords.clean\n\tsmudge = .git_filters/rcs-keywords.smudge %f\n' >> .git/config
rm -rf src/*.c
git checkout src/*.c
- name: Build Wheel Builder Container
shell: bash
run: |
set -x
cd .github/manylinux2014_wheel_builder
docker build --tag manylinux2014_wheel_builder --force-rm .
- name: Build Manylinux2014 Wheels
shell: bash
run: |
docker run -v ${GITHUB_WORKSPACE}:/src/ manylinux2014_wheel_builder
sudo mv ${GITHUB_WORKSPACE}/pmcx/dist/ ${GITHUB_WORKSPACE}/dist/
- name: Check If the Build Version Exists on PyPI
id: perform_pypi_upload_check
shell: bash
run: |
${GITHUB_WORKSPACE}/.github/check-pypi-upload.sh
- name: Upload packages to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
if: ${{ github.repository_owner == 'fangq' && steps.perform_pypi_upload_check.outputs.perform_pypi_upload == 1 && github.event_name != 'pull_request'}}
with:
password: ${{ secrets.PYPI_API_TOKEN }}
verify_metadata: false
verbose: true
skip_existing: true