@@ -68,21 +68,31 @@ jobs:
6868 uv sync --python .test-env --group dev --no-install-project
6969 uv run --python .test-env pytest tests/ --no-cov
7070
71+ # Non-Windows wheels uploaded directly (no signing)
72+ - uses : actions/upload-artifact@v7
73+ if : runner.os != 'Windows'
74+ with :
75+ name : pkg-wheel-${{ matrix.os }}
76+ path : wheelhouse/*.whl
77+ if-no-files-found : error
78+ - name : Warn smctl does not support ARM64 yet
79+ if : runner.os == 'Windows' && runner.arch == 'ARM64' && env.SIGN_WINDOWS_WHEELS == 'true'
80+ run : echo "::warning::smctl does not support ARM64 yet; the ARM64 wheel will not be signed"
7181 - name : Install wheel package for signing
72- if : runner.os == 'Windows' && env.SIGN_WINDOWS_WHEELS == 'true'
82+ if : runner.os == 'Windows' && runner.arch == 'X64' && env.SIGN_WINDOWS_WHEELS == 'true'
7383 run : python -m pip install wheel
7484 - name : Unpack khisto wheel
75- if : runner.os == 'Windows' && env.SIGN_WINDOWS_WHEELS == 'true'
85+ if : runner.os == 'Windows' && runner.arch == 'X64' && env.SIGN_WINDOWS_WHEELS == 'true'
7686 run : |
7787 mkdir -p wheelhouse/unpacked
7888 python -m wheel unpack wheelhouse/khisto-*.whl --dest wheelhouse/unpacked
7989 - name : Setup SM_CLIENT_CERT_FILE from base64 secret data
80- if : runner.os == 'Windows' && env.SIGN_WINDOWS_WHEELS == 'true'
90+ if : runner.os == 'Windows' && runner.arch == 'X64' && env.SIGN_WINDOWS_WHEELS == 'true'
8191 run : |
8292 echo "SM_CLIENT_CERT_FILE=D:\\Certificate_pkcs12.p12" >> "$GITHUB_ENV"
8393 echo "${{ secrets.SM_CLIENT_CERT_FILE_B64 }}" | base64 --decode > /d/Certificate_pkcs12.p12
8494 - name : Sign unpacked wheel binaries
85- if : runner.os == 'Windows' && env.SIGN_WINDOWS_WHEELS == 'true'
95+ if : runner.os == 'Windows' && runner.arch == 'X64' && env.SIGN_WINDOWS_WHEELS == 'true'
8696 uses : digicert/code-signing-software-trust-action@v1.2.1
8797 with :
8898 input : wheelhouse/unpacked/
@@ -93,11 +103,12 @@ jobs:
93103 SM_API_KEY : ${{ secrets.SM_API_KEY }}
94104 SM_CLIENT_CERT_PASSWORD : ${{ secrets.SM_CLIENT_CERT_PASSWORD }}
95105 - name : Repack signed wheels
96- if : runner.os == 'Windows' && env.SIGN_WINDOWS_WHEELS == 'true'
106+ if : runner.os == 'Windows' && runner.arch == 'X64' && env.SIGN_WINDOWS_WHEELS == 'true'
97107 run : |
98108 rm wheelhouse/khisto-*.whl
99109 python -m wheel pack wheelhouse/unpacked/khisto-* --dest-dir wheelhouse
100110 - uses : actions/upload-artifact@v7
111+ if : runner.os == 'Windows'
101112 with :
102113 name : pkg-wheel-${{ matrix.os }}
103114 path : wheelhouse/*.whl
0 commit comments