1
1
name : Release
2
2
3
+
3
4
on :
5
+ workflow_dispatch : {}
4
6
push :
5
7
tags :
6
8
- ' [0-9]+.[0-9]+.[0-9]*'
29
31
- name : Build wheels
30
32
run : python -m cibuildwheel --output-dir dist
31
33
env :
32
- CIBW_ENVIRONMENT : HNSWLIB_NO_NATIVE=true
34
+ CIBW_ENVIRONMENT : HNSWLIB_NO_NATIVE=true CFLAGS='-O2' CXXFLAGS='-O2'
33
35
CIBW_ENVIRONMENT_PASS_LINUX : HNSWLIB_NO_NATIVE
34
36
CIBW_PROJECT_REQUIRES_PYTHON : " >=3.7"
35
37
CIBW_SKIP : " cp312-* pp* *musllinux*"
@@ -42,29 +44,29 @@ jobs:
42
44
name : python-package-distributions
43
45
path : dist
44
46
45
- upload :
46
- runs-on : ubuntu-latest
47
- needs : build
48
- steps :
49
- - uses : actions/checkout@v3
50
- - uses : actions/setup-python@v4
51
- with :
52
- python-version : " 3.10"
53
- - name : Build sdist
54
- run : |
55
- python -m pip install .
56
- make dist
57
- - name : Download wheels
58
- uses : actions/download-artifact@v3
59
- with :
60
- name : python-package-distributions
61
- path : dist/
62
- - name : Publish to Test PyPI
63
- uses : pypa/gh-action-pypi-publish@release/v1
64
- with :
65
- password : ${{ secrets.TEST_PYPI_API_TOKEN }}
66
- repository-url : https://test.pypi.org/legacy/
67
- - name : Publish to PyPI
68
- uses : pypa/gh-action-pypi-publish@release/v1
69
- with :
70
- password : ${{ secrets.PYPI_API_TOKEN }}
47
+ # upload:
48
+ # runs-on: ubuntu-latest
49
+ # needs: build
50
+ # steps:
51
+ # - uses: actions/checkout@v3
52
+ # - uses: actions/setup-python@v4
53
+ # with:
54
+ # python-version: "3.10"
55
+ # - name: Build sdist
56
+ # run: |
57
+ # python -m pip install .
58
+ # make dist
59
+ # - name: Download wheels
60
+ # uses: actions/download-artifact@v3
61
+ # with:
62
+ # name: python-package-distributions
63
+ # path: dist/
64
+ # - name: Publish to Test PyPI
65
+ # uses: pypa/gh-action-pypi-publish@release/v1
66
+ # with:
67
+ # password: ${{ secrets.TEST_PYPI_API_TOKEN }}
68
+ # repository-url: https://test.pypi.org/legacy/
69
+ # - name: Publish to PyPI
70
+ # uses: pypa/gh-action-pypi-publish@release/v1
71
+ # with:
72
+ # password: ${{ secrets.PYPI_API_TOKEN }}
0 commit comments