mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-14 00:06:58 +08:00
rewrite deploy with macos
This commit is contained in:
12
.github/workflows/python-publish.yml
vendored
12
.github/workflows/python-publish.yml
vendored
@@ -150,24 +150,20 @@ jobs:
|
|||||||
print(f'Renamed: {whl_file} -> {new_whl_file}')
|
print(f'Renamed: {whl_file} -> {new_whl_file}')
|
||||||
"
|
"
|
||||||
- name: Build 2
|
- name: Build 2
|
||||||
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
|
- 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: |
|
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]
|
||||||
for whl_file in Path('./dist').glob('*.whl'):
|
for whl_file in Path('./dist').glob('*.whl'):
|
||||||
if 'universal2' in whl_file.stem:
|
new_name = whl_file.name.replace('universal2', plat_info)
|
||||||
new_name = whl_file.name.replace('universal2', plat_info)
|
new_whl_file = whl_file.with_name(new_name)
|
||||||
new_whl_file = whl_file.with_name(new_name)
|
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 3
|
- name: Build 3
|
||||||
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: Build and publish
|
- name: Build and publish
|
||||||
|
|||||||
Reference in New Issue
Block a user