mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-16 01:06:56 +08:00
rewrite deploy with macos
This commit is contained in:
9
.github/workflows/python-publish.yml
vendored
9
.github/workflows/python-publish.yml
vendored
@@ -127,6 +127,9 @@ jobs:
|
|||||||
# run: |
|
# run: |
|
||||||
# make build
|
# make build
|
||||||
- name: Build 1
|
- name: Build 1
|
||||||
|
run: |
|
||||||
|
make build
|
||||||
|
- name: Rename 1
|
||||||
run: |
|
run: |
|
||||||
make build
|
make build
|
||||||
python -c "
|
python -c "
|
||||||
@@ -147,6 +150,9 @@ jobs:
|
|||||||
if: ${{ (matrix.buildplat[0] != 'macos-13' || matrix['python-version'] != '3.11') && (matrix.buildplat[0] != 'macos-13' || matrix['python-version'] != '3.12') }}
|
if: ${{ (matrix.buildplat[0] != 'macos-13' || matrix['python-version'] != '3.11') && (matrix.buildplat[0] != 'macos-13' || matrix['python-version'] != '3.12') }}
|
||||||
run: |
|
run: |
|
||||||
make build
|
make build
|
||||||
|
- name: Rename 2
|
||||||
|
if: ${{ (matrix.buildplat[0] != 'macos-13' || matrix['python-version'] != '3.11') && (matrix.buildplat[0] != 'macos-13' || matrix['python-version'] != '3.12') }}
|
||||||
|
run: |
|
||||||
python -c "
|
python -c "
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
plat_info = '${{ matrix.buildplat[1] }}'.split('_', 1)[-1]
|
plat_info = '${{ matrix.buildplat[1] }}'.split('_', 1)[-1]
|
||||||
@@ -157,7 +163,7 @@ jobs:
|
|||||||
whl_file.rename(new_whl_file)
|
whl_file.rename(new_whl_file)
|
||||||
print(f'Renamed: {whl_file} -> {new_whl_file}')
|
print(f'Renamed: {whl_file} -> {new_whl_file}')
|
||||||
"
|
"
|
||||||
- name: Build 2
|
- name: Build 3
|
||||||
if: ${{ (matrix.buildplat[0] != 'macos-13' || matrix['python-version'] != '3.11') && (matrix.buildplat[0] != 'macos-13' || matrix['python-version'] != '3.12') }}
|
if: ${{ (matrix.buildplat[0] != 'macos-13' || matrix['python-version'] != '3.11') && (matrix.buildplat[0] != 'macos-13' || matrix['python-version'] != '3.12') }}
|
||||||
run: |
|
run: |
|
||||||
make build
|
make build
|
||||||
@@ -167,6 +173,7 @@ jobs:
|
|||||||
TWINE_PASSWORD: ${{ secrets.TESTPYPI_TOKEN }}
|
TWINE_PASSWORD: ${{ secrets.TESTPYPI_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
twine check dist/*.whl
|
twine check dist/*.whl
|
||||||
|
twine upload --repository-url https://test.pypi.org/legacy/ dist/*.whl --verbose
|
||||||
|
|
||||||
|
|
||||||
# deploy_with_manylinux:
|
# deploy_with_manylinux:
|
||||||
|
|||||||
Reference in New Issue
Block a user