Skip to content
This repository was archived by the owner on Sep 1, 2026. It is now read-only.

Commit 5f95115

Browse files
fix: publish ARM64 local-mode wheels
1 parent 9fe6865 commit 5f95115

2 files changed

Lines changed: 29 additions & 0 deletions

File tree

‎.github/workflows/publish-pypi.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ jobs:
2020
binary_name: stagehand-server-v3-linux-x64
2121
output_path: src/stagehand/_sea/stagehand-linux-x64
2222
wheel_platform_tag: manylinux2014_x86_64
23+
- os: ubuntu-latest
24+
binary_name: stagehand-server-v3-linux-arm64
25+
output_path: src/stagehand/_sea/stagehand-linux-arm64
26+
wheel_platform_tag: manylinux2014_aarch64
2327
- os: macos-latest
2428
binary_name: stagehand-server-v3-darwin-arm64
2529
output_path: src/stagehand/_sea/stagehand-darwin-arm64
@@ -32,6 +36,10 @@ jobs:
3236
binary_name: stagehand-server-v3-win32-x64.exe
3337
output_path: src/stagehand/_sea/stagehand-win32-x64.exe
3438
wheel_platform_tag: win_amd64
39+
- os: windows-latest
40+
binary_name: stagehand-server-v3-win32-arm64.exe
41+
output_path: src/stagehand/_sea/stagehand-win32-arm64.exe
42+
wheel_platform_tag: win_arm64
3543

3644
runs-on: ${{ matrix.os }}
3745
permissions:

‎tests/test_sea_binary.py‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,27 @@ def _load_download_binary_module():
2323
download_binary = _load_download_binary_module()
2424

2525

26+
@pytest.mark.parametrize(
27+
("sys_platform", "machine", "expected"),
28+
[
29+
("linux", "aarch64", "stagehand-linux-arm64"),
30+
("linux", "x86_64", "stagehand-linux-x64"),
31+
("win32", "ARM64", "stagehand-win32-arm64.exe"),
32+
("win32", "AMD64", "stagehand-win32-x64.exe"),
33+
],
34+
)
35+
def test_default_binary_filename_matches_published_wheel(
36+
monkeypatch: pytest.MonkeyPatch,
37+
sys_platform: str,
38+
machine: str,
39+
expected: str,
40+
) -> None:
41+
monkeypatch.setattr(sea_binary.sys, "platform", sys_platform)
42+
monkeypatch.setattr(sea_binary.platform, "machine", lambda: machine)
43+
44+
assert sea_binary.default_binary_filename() == expected
45+
46+
2647
def test_resolve_binary_path_defaults_cache_version_to_package_version(
2748
monkeypatch: pytest.MonkeyPatch,
2849
tmp_path: Path,

0 commit comments

Comments
 (0)