-
Notifications
You must be signed in to change notification settings - Fork 750
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FEATURE: Add early support for aarch64 in dev env
This patch adds some new steps to support the aarch64 architecture on Linux. An updated version of Rust is needed to compile the `selenium-manager` binary as it’s not shipped with the `selenium-webdriver` gem yet. In the same vein, Google doesn’t ship an aarch64 version of Chrome yet, so it doesn’t make sense to install even Chromium in the image. We have to rely on Firefox to run the system specs.
- Loading branch information
Showing
4 changed files
with
28 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
if [ "$(dpkg --print-architecture)" = "arm64" ]; then | ||
apt update && apt install -y firefox-esr | ||
cd /tmp | ||
/tmp/install-rust | ||
git clone --depth 1 --no-checkout https://github.com/SeleniumHQ/selenium.git | ||
cd selenium | ||
git sparse-checkout set rust | ||
git checkout | ||
cd rust | ||
cargo build --release | ||
cp target/release/selenium-manager /usr/local/bin | ||
rustup self uninstall -y | ||
else | ||
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - &&\ | ||
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list &&\ | ||
apt update &&\ | ||
apt install -y google-chrome-stable firefox-esr | ||
fi |