Skip to content

Commit

Permalink
[build] remove binaries from repo and only download if necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Dec 20, 2023
1 parent 3f5f172 commit 3033826
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 17 deletions.
Empty file added common/manager/.ignore
Empty file.
25 changes: 8 additions & 17 deletions common/manager/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -11,32 +11,23 @@ package(
alias(
name = "selenium-manager-linux",
actual = select({
"//common:stamp": "linux/selenium-manager",
"//conditions:default": "//rust:selenium-manager-linux",
"//common:use_pinned_browser": ".ignore",
"//conditions:default": "@download_sm_linux//file",
}),
)

alias(
name = "selenium-manager-macos",
actual = select({
"//common:stamp": "macos/selenium-manager",
"//conditions:default": "//rust:selenium-manager-macos",
"//common:use_pinned_browser": ".ignore",
"//conditions:default": "@download_sm_macos//file",
}),
)

# Rust does not compile properly on windows so just use what is in repo for now
alias(
name = "selenium-manager-windows",
actual = "windows/selenium-manager.exe",
)

exports_files(
[
"linux/selenium-manager",
"macos/selenium-manager",
"windows/selenium-manager.exe",
],
visibility = [
"//rust:__pkg__",
],
actual = select({
"//common:use_pinned_browser": ".ignore",
"//conditions:default": "@download_sm_windows//file",
}),
)
Binary file removed common/manager/linux/selenium-manager
Binary file not shown.
Binary file removed common/manager/macos/selenium-manager
Binary file not shown.
Binary file removed common/manager/windows/selenium-manager.exe
Binary file not shown.

0 comments on commit 3033826

Please sign in to comment.