Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ jobs:
git clean -fdx wasmtime build
python download-wasmtime.py darwin x86_64
python setup.py bdist_wheel --plat-name macosx-10-13-x86_64
- run: |
git clean -fdx wasmtime build
python download-wasmtime.py darwin arm64
python setup.py bdist_wheel --plat-name macosx-11-0-arm64
- run: |
git clean -fdx wasmtime build
python download-wasmtime.py win32 x86_64
Expand Down
2 changes: 2 additions & 0 deletions download-wasmtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ def main(platform, arch):
version = fh.read().strip()
if arch == 'AMD64':
arch = 'x86_64'
if arch == 'arm64':
arch = 'aarch64'
if platform == 'linux':
filename = 'wasmtime-v{}-{}-linux-c-api.tar.xz'.format(version, arch)
libname = '_libwasmtime.so'
Expand Down
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
extras_require={
'testing': [
'coverage',
# remove flake8 once https://github.com/tholo/pytest-flake8/issues/87 is fixed
# and the new version of pytest-flake8 is released
'flake8==4.0.1',
'pytest',
'pycparser',
'pytest-flake8',
Expand Down
2 changes: 2 additions & 0 deletions wasmtime/_ffi.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
machine = platform.machine()
if machine == 'AMD64':
machine = 'x86_64'
if machine == 'arm64':
machine = 'aarch64'
if machine != 'x86_64' and machine != 'aarch64':
raise RuntimeError("unsupported architecture for wasmtime: {}".format(machine))

Expand Down