mirror of https://github.com/Nonannet/copapy.git
commit
7f67fb116d
|
|
@ -82,4 +82,4 @@ jobs:
|
||||||
TWINE_USERNAME: __token__
|
TWINE_USERNAME: __token__
|
||||||
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
|
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
|
||||||
|
|
||||||
run: python -m twine upload wheelhouse/*
|
run: find wheelhouse -name "*.whl" -print0 | xargs -0 python -m twine upload
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ __pycache__
|
||||||
/src/*.egg-info/*
|
/src/*.egg-info/*
|
||||||
/dist/*
|
/dist/*
|
||||||
.vscode
|
.vscode
|
||||||
.venv
|
.venv*
|
||||||
.mypy_cache
|
.mypy_cache
|
||||||
.pytest_cache
|
.pytest_cache
|
||||||
/tests/autogenerated_*.py
|
/tests/autogenerated_*.py
|
||||||
|
|
@ -22,4 +22,8 @@ build/*
|
||||||
vc140.pdb
|
vc140.pdb
|
||||||
benchmark_results*
|
benchmark_results*
|
||||||
docs/build
|
docs/build
|
||||||
docs/source/api
|
docs/source/api
|
||||||
|
/libs/
|
||||||
|
*.core
|
||||||
|
core
|
||||||
|
*.log
|
||||||
|
|
@ -258,7 +258,7 @@ class stencil_database():
|
||||||
elif pr.type.endswith('_LDST32_ABS_LO12_NC'):
|
elif pr.type.endswith('_LDST32_ABS_LO12_NC'):
|
||||||
# R_AARCH64_LDST32_ABS_LO12_NC
|
# R_AARCH64_LDST32_ABS_LO12_NC
|
||||||
# (S + A) & 0xFFF
|
# (S + A) & 0xFFF
|
||||||
mask = 0b11_1111_1111_1100_0000_0000
|
mask = 0b00_1111_1111_1100_0000_0000
|
||||||
patch_value = symbol_address + pr.fields['r_addend']
|
patch_value = symbol_address + pr.fields['r_addend']
|
||||||
symbol_type = symbol_type + 0x02 # Absolut value
|
symbol_type = symbol_type + 0x02 # Absolut value
|
||||||
scale = 4
|
scale = 4
|
||||||
|
|
@ -276,7 +276,7 @@ class stencil_database():
|
||||||
elif pr.type.endswith('_LDST64_ABS_LO12_NC'):
|
elif pr.type.endswith('_LDST64_ABS_LO12_NC'):
|
||||||
# R_AARCH64_LDST64_ABS_LO12_NC
|
# R_AARCH64_LDST64_ABS_LO12_NC
|
||||||
# (S + A) & 0xFFF
|
# (S + A) & 0xFFF
|
||||||
mask = 0b11_1111_1111_1100_0000_0000
|
mask = 0b00_0111_1111_1100_0000_0000
|
||||||
patch_value = symbol_address + pr.fields['r_addend']
|
patch_value = symbol_address + pr.fields['r_addend']
|
||||||
symbol_type = symbol_type + 0x02 # Absolut value
|
symbol_type = symbol_type + 0x02 # Absolut value
|
||||||
scale = 8
|
scale = 8
|
||||||
|
|
|
||||||
|
|
@ -71,8 +71,8 @@ def test_compile():
|
||||||
|
|
||||||
il.write_com(_binwrite.Command.END_COM)
|
il.write_com(_binwrite.Command.END_COM)
|
||||||
|
|
||||||
print('* Data to runner:')
|
#print('* Data to runner:')
|
||||||
il.print()
|
#il.print()
|
||||||
|
|
||||||
il.to_file('build/runner/test.copapy')
|
il.to_file('build/runner/test.copapy')
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -66,8 +66,8 @@ def test_compile():
|
||||||
|
|
||||||
il.write_com(_binwrite.Command.END_COM)
|
il.write_com(_binwrite.Command.END_COM)
|
||||||
|
|
||||||
print('* Data to runner:')
|
#print('* Data to runner:')
|
||||||
il.print()
|
#il.print()
|
||||||
|
|
||||||
il.to_file('build/runner/test-arm64.copapy')
|
il.to_file('build/runner/test-arm64.copapy')
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -39,8 +39,8 @@ def test_compile():
|
||||||
|
|
||||||
il.write_com(_binwrite.Command.END_COM)
|
il.write_com(_binwrite.Command.END_COM)
|
||||||
|
|
||||||
print('* Data to runner:')
|
#print('* Data to runner:')
|
||||||
il.print()
|
#il.print()
|
||||||
|
|
||||||
il.to_file('build/runner/test.copapy')
|
il.to_file('build/runner/test.copapy')
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -34,8 +34,8 @@ def test_compile_sqrt():
|
||||||
|
|
||||||
il.write_com(_binwrite.Command.END_COM)
|
il.write_com(_binwrite.Command.END_COM)
|
||||||
|
|
||||||
print('* Data to runner:')
|
#print('* Data to runner:')
|
||||||
il.print()
|
#il.print()
|
||||||
|
|
||||||
il.to_file('build/runner/test.copapy')
|
il.to_file('build/runner/test.copapy')
|
||||||
|
|
||||||
|
|
@ -68,8 +68,8 @@ def test_compile_log():
|
||||||
|
|
||||||
il.write_com(_binwrite.Command.END_COM)
|
il.write_com(_binwrite.Command.END_COM)
|
||||||
|
|
||||||
print('* Data to runner:')
|
#print('* Data to runner:')
|
||||||
il.print()
|
#il.print()
|
||||||
|
|
||||||
il.to_file('build/runner/test.copapy')
|
il.to_file('build/runner/test.copapy')
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -117,8 +117,8 @@ def test_compile():
|
||||||
|
|
||||||
dw.write_com(_binwrite.Command.END_COM)
|
dw.write_com(_binwrite.Command.END_COM)
|
||||||
|
|
||||||
print('* Data to runner:')
|
#print('* Data to runner:')
|
||||||
dw.print()
|
#dw.print()
|
||||||
|
|
||||||
dw.to_file('build/runner/test-arm64.copapy')
|
dw.to_file('build/runner/test-arm64.copapy')
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -119,8 +119,8 @@ def test_compile():
|
||||||
|
|
||||||
dw.write_com(_binwrite.Command.END_COM)
|
dw.write_com(_binwrite.Command.END_COM)
|
||||||
|
|
||||||
print('* Data to runner:')
|
#print('* Data to runner:')
|
||||||
dw.print()
|
#dw.print()
|
||||||
|
|
||||||
dw.to_file('build/runner/test-armv7.copapy')
|
dw.to_file('build/runner/test-armv7.copapy')
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,12 +24,17 @@ def main() -> None:
|
||||||
|
|
||||||
assert releases, "No releases found."
|
assert releases, "No releases found."
|
||||||
|
|
||||||
release = releases[0] # newest release (first in list)
|
assets: list[Any] = []
|
||||||
tag = release["tag_name"]
|
for release in releases:
|
||||||
print(f"Found latest release: {tag}")
|
tag = release["tag_name"]
|
||||||
|
print(f"Found latest release: {tag}")
|
||||||
|
|
||||||
assets = release.get("assets", [])
|
assets = release.get("assets", [])
|
||||||
assert assets, "No assets found for this release."
|
if assets:
|
||||||
|
break
|
||||||
|
print(f"No assets found for release {tag}.")
|
||||||
|
|
||||||
|
assert assets, "No assets found."
|
||||||
|
|
||||||
for asset in assets:
|
for asset in assets:
|
||||||
url = asset["browser_download_url"]
|
url = asset["browser_download_url"]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue