Skip to content

Commit

Permalink
Install and use chromedriver
Browse files Browse the repository at this point in the history
  • Loading branch information
MOZGIII committed Nov 4, 2023
1 parent b4cc455 commit 8e39425
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/scripts/build_env/ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,11 @@ SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
curl -sSL "https://github.com/rustwasm/wasm-bindgen/releases/download/0.2.87/wasm-bindgen-0.2.87-x86_64-unknown-linux-musl.tar.gz" |
sudo tar -xzvf - -C /usr/local/bin --strip-components=1

# Install chromedriver.
npx @puppeteer/browsers install chromedriver@stable

# Set CHROMEDRIVER env var.
CHROMEDRIVERS=(chromedriver/*/chromedriver-*/chromedriver)
printf "CHROMEDRIVER=%s\n" "${CHROMEDRIVERS[0]}" >>"$GITHUB_ENV"

source "${SCRIPT_DIR}/common.sh"

0 comments on commit 8e39425

Please sign in to comment.