Skip to content

Commit ef6b380

Browse files
authored
Update build.yml
1 parent d5bd91e commit ef6b380

File tree

1 file changed

+28
-33
lines changed

1 file changed

+28
-33
lines changed

.github/workflows/build.yml

Lines changed: 28 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,42 @@
1+
name: Test Python 3.13t on Windows 11 ARM
2+
13
on:
4+
workflow_dispatch:
25
push:
3-
branches:
4-
- main
56

67
jobs:
7-
build:
8+
test-python-313t:
89
runs-on: windows-11-arm
10+
911
steps:
10-
- name: Checkout code
11-
uses: actions/checkout@v4
12+
- uses: actions/checkout@v5
1213

13-
- name: Download rustup-init.exe (ARM64)
14-
shell: pwsh
15-
run: |
16-
Invoke-WebRequest -Uri "https://static.rust-lang.org/rustup/dist/aarch64-pc-windows-msvc/rustup-init.exe" -OutFile "rustup-init.exe"
14+
- name: Set up Python 3.13t
15+
uses: actions/setup-python@v6
16+
with:
17+
python-version: '3.13t'
18+
architecture: 'arm64'
1719

18-
- name: Install Rust (ARM64)
19-
shell: pwsh
20+
- name: Show Python version (python)
2021
run: |
21-
Start-Process -FilePath ".\rustup-init.exe" -ArgumentList "-y --default-host aarch64-pc-windows-msvc" -Wait
22+
python -V
2223
23-
- name: Add Rust to PATH
24-
shell: pwsh
24+
- name: Show Python architecture (python)
2525
run: |
26-
$cargoBin = "$env:USERPROFILE\.cargo\bin"
27-
echo "$cargoBin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
28-
29-
- name: Update & Configure Rust Toolchain (ARM64)
30-
shell: pwsh
26+
python - <<EOF
27+
import platform, sys
28+
print("Version:", sys.version)
29+
print("Machine:", platform.machine())
30+
print("Executable:", sys.executable)
31+
EOF
32+
33+
- name: List Python versions via py launcher
34+
shell: cmd
3135
run: |
32-
rustup update
33-
rustup toolchain install stable-aarch64-pc-windows-msvc
34-
rustup default stable-aarch64-pc-windows-msvc
35-
rustc -vV
36+
py -0p
3637
37-
- name: Clone Selenium Repository
38-
shell: pwsh
38+
- name: Verify Python 3.13t via py launcher
39+
shell: cmd
3940
run: |
40-
git clone https://github.com/SeleniumHQ/selenium.git
41-
42-
- name: Build Selenium Rust crate
43-
shell: pwsh
44-
run: |
45-
cd selenium\rust
46-
cargo build --release
47-
41+
py -3.13t -V
42+
py -3.13t -c "import platform, sys; print(platform.machine(), sys.executable)"

0 commit comments

Comments
 (0)