mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-14 16:26:55 +08:00
rewrite deploy with macos
This commit is contained in:
21
.github/workflows/python-publish.yml
vendored
21
.github/workflows/python-publish.yml
vendored
@@ -138,17 +138,16 @@ jobs:
|
|||||||
replaced = f'{sys_ver_info}_0_{plat_info}'
|
replaced = f'{sys_ver_info}_0_{plat_info}'
|
||||||
print(replaced)
|
print(replaced)
|
||||||
for whl_file in Path('./dist').glob('*.whl'):
|
for whl_file in Path('./dist').glob('*.whl'):
|
||||||
if 'universal2' in whl_file.stem:
|
parts = whl_file.stem.split('_')
|
||||||
parts = whl_file.stem.split('_')
|
print(parts)
|
||||||
print(parts)
|
be_replaced = '_'.join(parts[1:])
|
||||||
be_replaced = '_'.join(parts[1:])
|
print(be_replaced)
|
||||||
print(be_replaced)
|
new_name = whl_file.name.replace(be_replaced, replaced)
|
||||||
new_name = whl_file.name.replace(be_replaced, replaced)
|
print(new_name)
|
||||||
print(new_name)
|
new_whl_file = whl_file.with_name(new_name)
|
||||||
new_whl_file = whl_file.with_name(new_name)
|
print(new_whl_file)
|
||||||
print(new_whl_file)
|
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 2
|
||||||
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') }}
|
||||||
|
|||||||
Reference in New Issue
Block a user