Skip to content

Commit b49fb28

Browse files
feat(core): support Windows on ARM
refactor(native): Compress native installation using UPX on Windows
1 parent f818ea9 commit b49fb28

4 files changed

Lines changed: 18 additions & 2 deletions

File tree

.github/workflows/_build-native-only.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ jobs:
2828
experimental: true
2929
- runner: windows-latest
3030
experimental: true
31+
- runner: windows-11-arm
32+
experimental: true
3133

3234
permissions:
3335
attestations: write
@@ -48,6 +50,12 @@ jobs:
4850
enable-cache: true
4951
cache-dependency-glob: uv.lock
5052

53+
- name: Install upx for native Windows version
54+
if: ${{ matrix.runner == 'windows-latest' || matrix.runner == 'windows-11-arm' }}
55+
shell: bash
56+
run: |
57+
choco install upx --no-progress
58+
5159
- name: Build native distribution into dist_native/
5260
shell: bash
5361
run: make dist_native

.github/workflows/_package-publish.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ jobs:
2828
experimental: true
2929
- runner: windows-latest
3030
experimental: true
31+
- runner: windows-11-arm
32+
experimental: true
3133

3234
permissions:
3335
attestations: write
@@ -61,6 +63,12 @@ jobs:
6163
exit 1
6264
fi
6365
66+
- name: Install upx for native Windows version
67+
if: ${{ matrix.runner == 'windows-latest' || matrix.runner == 'windows-11-arm' }}
68+
shell: bash
69+
run: |
70+
choco install upx --no-progress
71+
6472
- name: Build native distribution into dist_native/
6573
shell: bash
6674
run: make dist_native

.github/workflows/_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
if [[ "${{ github.event.head_commit.message }}" == *"skip:test:matrix-runner"* ]]; then
2222
echo 'matrix={"runner":["ubuntu-latest"],"experimental":[false]}' >> $GITHUB_OUTPUT
2323
else
24-
echo 'matrix={"runner":["ubuntu-latest"],"experimental":[false],"include":[{"runner":"ubuntu-24.04-arm","experimental":true},{"runner":"macos-latest","experimental":true},{"runner":"macos-13","experimental":true},{"runner":"windows-latest","experimental":true}]}' >> $GITHUB_OUTPUT
24+
echo 'matrix={"runner":["ubuntu-latest"],"experimental":[false],"include":[{"runner":"ubuntu-24.04-arm","experimental":true},{"runner":"macos-latest","experimental":true},{"runner":"macos-13","experimental":true},{"runner":"windows-latest","experimental":true},{"runner":"windows-11-arm","experimental":true}]}' >> $GITHUB_OUTPUT
2525
fi
2626
2727
test:

aignostics.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ a = Analysis(
5454
runtime_hooks=[],
5555
excludes=[],
5656
noarchive=False,
57-
optimize=2 if platform.system() == "Darwin" else 0,
57+
optimize=2 if platform.system() == "Darwin" else 1,
5858
)
5959

6060
pyz = PYZ(a.pure)

0 commit comments

Comments
 (0)