-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[rust] Fix Windows arm64 logic for Selenium Manager and prepare CI for running the test suite #16046
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
dennisameling
wants to merge
5
commits into
SeleniumHQ:trunk
Choose a base branch
from
dennisameling:selenium-manager-windows-arm64
base: trunk
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
[rust] Fix Windows arm64 logic for Selenium Manager and prepare CI for running the test suite #16046
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
fd1c063
[rust] Fix Windows arm64 logic for Selenium Manager and prepare CI
dennisameling 029e59e
Add build and release logic (MSVC supports cross-compilation)
dennisameling 3ddf340
Merge branch 'trunk' into selenium-manager-windows-arm64
cgoldberg 560650b
bazel.yml: fix Windows detection logic to also work on windows-11-arm
dennisameling 825f5db
Merge branch 'trunk' into selenium-manager-windows-arm64
cgoldberg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,7 @@ jobs: | |
- os: macos | ||
- os: ubuntu | ||
- os: windows | ||
- os: windows-11-arm | ||
with: | ||
name: Tests (${{ matrix.os }}) | ||
cache-key: rust-test | ||
|
@@ -57,20 +58,31 @@ jobs: | |
- name: "Update Rust" | ||
run: | | ||
rustup update | ||
rustup toolchain install stable-i686-pc-windows-msvc | ||
rustup default stable-i686-pc-windows-msvc | ||
rustup target install i686-pc-windows-msvc | ||
rustup target install aarch64-pc-windows-msvc | ||
rustc -vV | ||
- name: "Build release binary" | ||
run: cargo build --release | ||
- name: "Build release binary (x86)" | ||
run: cargo build --target i686-pc-windows-msvc --release | ||
working-directory: rust | ||
- name: "Rename binary" | ||
run: mv rust/target/release/selenium-manager.exe selenium-manager-windows.exe | ||
- name: "Upload release binary" | ||
- name: "Build release binary (arm64)" | ||
run: cargo build --target aarch64-pc-windows-msvc --release | ||
working-directory: rust | ||
- name: "Rename binary (x86)" | ||
run: mv rust/target/i686-pc-windows-msvc/release/selenium-manager.exe selenium-manager-windows.exe | ||
- name: "Rename binary (arm64)" | ||
run: mv rust/target/aarch64-pc-windows-msvc/release/selenium-manager.exe selenium-manager-windows-arm64.exe | ||
- name: "Upload release binary (x86)" | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: selenium-manager-windows | ||
path: selenium-manager-windows.exe | ||
retention-days: 6 | ||
- name: "Upload release binary (arm64)" | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: selenium-manager-windows-arm64 | ||
path: selenium-manager-windows-arm64.exe | ||
retention-days: 6 | ||
|
||
windows-debug: | ||
name: "Windows Debug" | ||
|
@@ -87,20 +99,31 @@ jobs: | |
- name: "Update Rust" | ||
run: | | ||
rustup update | ||
rustup toolchain install stable-i686-pc-windows-msvc | ||
rustup default stable-i686-pc-windows-msvc | ||
rustup target install i686-pc-windows-msvc | ||
rustup target install aarch64-pc-windows-msvc | ||
rustc -vV | ||
- name: "Build release binary" | ||
run: cargo build --profile dev | ||
- name: "Build release binary (x86)" | ||
run: cargo build --target i686-pc-windows-msvc --profile dev | ||
working-directory: rust | ||
- name: "Rename binary" | ||
run: mv rust/target/debug/selenium-manager.exe selenium-manager-windows-debug.exe | ||
- name: "Upload release binary" | ||
- name: "Build release binary (arm64)" | ||
run: cargo build --target aarch64-pc-windows-msvc --profile dev | ||
working-directory: rust | ||
- name: "Rename binary (x86)" | ||
run: mv rust/target/i686-pc-windows-msvc/debug/selenium-manager.exe selenium-manager-windows-debug.exe | ||
- name: "Rename binary (arm64)" | ||
run: mv rust/target/aarch64-pc-windows-msvc/debug/selenium-manager.exe selenium-manager-windows-arm64-debug.exe | ||
- name: "Upload release binary (x86)" | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: selenium-manager-windows-debug | ||
path: selenium-manager-windows-debug.exe | ||
retention-days: 6 | ||
- name: "Upload release binary (arm64)" | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: selenium-manager-windows-arm64-debug | ||
path: selenium-manager-windows-arm64-debug.exe | ||
retention-days: 6 | ||
|
||
linux-stable: | ||
name: "Linux Stable" | ||
|
@@ -247,7 +270,8 @@ jobs: | |
linux_sha=$(shasum -a 256 artifacts/selenium-manager-linux/selenium-manager-linux | awk '{print $1}') | ||
macos_sha=$(shasum -a 256 artifacts/selenium-manager-macos/selenium-manager-macos | awk '{print $1}') | ||
windows_sha=$(shasum -a 256 artifacts/selenium-manager-windows/selenium-manager-windows.exe | awk '{print $1}') | ||
echo "{\"macos\": \"$macos_sha\", \"windows\": \"$windows_sha\", \"linux\": \"$linux_sha\"}" > latest.json | ||
windows_arm64_sha=$(shasum -a 256 artifacts/selenium-manager-windows/selenium-manager-windows-arm64.exe | awk '{print $1}') | ||
echo "{\"macos\": \"$macos_sha\", \"windows\": \"$windows_sha\", \"windows-arm64\": \"$windows_arm64_sha\", \"linux\": \"$linux_sha\"}" > latest.json | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "Selenium CI Bot" | ||
git add latest.json | ||
|
@@ -268,6 +292,8 @@ jobs: | |
artifacts/selenium-manager-linux/selenium-manager-linux | ||
artifacts/selenium-manager-macos/selenium-manager-macos | ||
artifacts/selenium-manager-windows/selenium-manager-windows.exe | ||
artifacts/selenium-manager-windows-arm64/selenium-manager-windows-arm64.exe | ||
artifacts/selenium-manager-linux-debug/selenium-manager-linux-debug.tar | ||
artifacts/selenium-manager-macos-debug/selenium-manager-macos-debug.tar | ||
artifacts/selenium-manager-windows-debug/selenium-manager-windows-debug.exe | ||
artifacts/selenium-manager-windows-arm64-debug/selenium-manager-windows-arm64-debug.exe |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This requires actions/partner-runner-images#77 to be merged first, which apparently is currently going through a last round of tests and should be published soon 🚀
Alternatively, for the time being, we could use
actions-rust-lang/setup-rust-toolchain
as suggested here.