mirror of
https://github.com/denoland/deno.git
synced 2024-11-29 16:30:56 -05:00
Move prebuilt binaries to third_party (#3227)
This commit is contained in:
parent
a7992e7703
commit
38f01f73a4
14 changed files with 17 additions and 42 deletions
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
|
@ -72,19 +72,19 @@ jobs:
|
||||||
# https://github.com/denoland/deno/blob/27cd2c97f18c0392bc04c66b786717b2bc677315/std/installer/mod.ts#L185-L193
|
# https://github.com/denoland/deno/blob/27cd2c97f18c0392bc04c66b786717b2bc677315/std/installer/mod.ts#L185-L193
|
||||||
# TODO(ry) This path modification should rather be done in "cargo test".
|
# TODO(ry) This path modification should rather be done in "cargo test".
|
||||||
run: |
|
run: |
|
||||||
echo ::add-path::`pwd`/prebuilt/linux64
|
echo ::add-path::`pwd`/third_party/prebuilt/linux64
|
||||||
echo ::add-path::`pwd`/target/release
|
echo ::add-path::`pwd`/target/release
|
||||||
|
|
||||||
- name: Environment (mac)
|
- name: Environment (mac)
|
||||||
if: startsWith(matrix.os, 'macOS')
|
if: startsWith(matrix.os, 'macOS')
|
||||||
run: |
|
run: |
|
||||||
echo ::add-path::`pwd`/prebuilt/mac
|
echo ::add-path::`pwd`/third_party/prebuilt/mac
|
||||||
echo ::add-path::`pwd`/target/release
|
echo ::add-path::`pwd`/target/release
|
||||||
|
|
||||||
- name: Environment (windows)
|
- name: Environment (windows)
|
||||||
if: startsWith(matrix.os, 'windows')
|
if: startsWith(matrix.os, 'windows')
|
||||||
run: |
|
run: |
|
||||||
echo ::add-path::$(pwd)\prebuilt\win
|
echo ::add-path::$(pwd)\third_party\prebuilt\win
|
||||||
echo ::add-path::$(pwd)\target\release
|
echo ::add-path::$(pwd)\target\release
|
||||||
|
|
||||||
- name: Log versions
|
- name: Log versions
|
||||||
|
|
5
prebuilt/.gitignore
vendored
5
prebuilt/.gitignore
vendored
|
@ -1,5 +0,0 @@
|
||||||
*.a
|
|
||||||
*.lib
|
|
||||||
*.exe
|
|
||||||
sccache
|
|
||||||
hyperfine
|
|
|
@ -1 +0,0 @@
|
||||||
c01e9c3d9169065911a1c74e935e0fdf15094e36
|
|
|
@ -1 +0,0 @@
|
||||||
0cebfd74e52919197b51a2662b2c206250484003
|
|
|
@ -1 +0,0 @@
|
||||||
fe12887d9fcce693fa333992cb46c6ab7ada181e
|
|
|
@ -1 +0,0 @@
|
||||||
ee65c55a42822368481c37c56a34ba205c5d2a33
|
|
|
@ -1 +0,0 @@
|
||||||
ad87698076d05b3d7d2cdf0705302ccf9444e3f2
|
|
|
@ -1 +0,0 @@
|
||||||
ae2658b8e54bbccabdd2d08c8fa3738ba2175651
|
|
|
@ -1160,15 +1160,6 @@ The core binding layer for Deno. It is released as a
|
||||||
with a binding API called "libdeno". See the crate documentation for more
|
with a binding API called "libdeno". See the crate documentation for more
|
||||||
details.
|
details.
|
||||||
|
|
||||||
### Updating prebuilt binaries
|
|
||||||
|
|
||||||
```shell
|
|
||||||
$ ./third_party/depot_tools/upload_to_google_storage.py -b denoland \
|
|
||||||
-e ~/.config/gcloud/legacy_credentials/ry@tinyclouds.org/.boto `which sccache`
|
|
||||||
$ mv `which sccache`.sha1 prebuilt/linux64/
|
|
||||||
$ gsutil acl ch -u AllUsers:R gs://denoland/608be47bf01004aa11d4ed06955414e93934516e
|
|
||||||
```
|
|
||||||
|
|
||||||
### Continuous Benchmarks
|
### Continuous Benchmarks
|
||||||
|
|
||||||
See our benchmarks [over here](https://deno.land/benchmarks.html)
|
See our benchmarks [over here](https://deno.land/benchmarks.html)
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit cab4821cd937dd3c927430f0f0e05a38af1b84a0
|
Subproject commit 5567e9cbc81e7e7068a9eee12a71cced029e1e89
|
|
@ -161,7 +161,6 @@ def run_max_mem_benchmark(deno_exe):
|
||||||
|
|
||||||
|
|
||||||
def run_exec_time(deno_exe, build_dir):
|
def run_exec_time(deno_exe, build_dir):
|
||||||
third_party.download_hyperfine()
|
|
||||||
hyperfine_exe = third_party.get_prebuilt_tool_path("hyperfine")
|
hyperfine_exe = third_party.get_prebuilt_tool_path("hyperfine")
|
||||||
benchmark_file = os.path.join(build_dir, "hyperfine_results.json")
|
benchmark_file = os.path.join(build_dir, "hyperfine_results.json")
|
||||||
run([
|
run([
|
||||||
|
|
|
@ -5,6 +5,7 @@ import sys
|
||||||
import time
|
import time
|
||||||
import subprocess
|
import subprocess
|
||||||
import util
|
import util
|
||||||
|
import third_party
|
||||||
|
|
||||||
# Some of the benchmarks in this file have been renamed. In case the history
|
# Some of the benchmarks in this file have been renamed. In case the history
|
||||||
# somehow gets messed up:
|
# somehow gets messed up:
|
||||||
|
@ -193,8 +194,9 @@ def run(server_cmd, port, merge_env=None, origin_cmd=None):
|
||||||
time.sleep(5) # wait for server to wake up. TODO racy.
|
time.sleep(5) # wait for server to wake up. TODO racy.
|
||||||
|
|
||||||
try:
|
try:
|
||||||
cmd = "third_party/wrk/%s/wrk -d %s --latency http://127.0.0.1:%s/" % (
|
wrk = third_party.get_prebuilt_tool_path("wrk")
|
||||||
util.platform(), DURATION, port)
|
assert os.path.exists(wrk)
|
||||||
|
cmd = "%s -d %s --latency http://127.0.0.1:%s/" % (wrk, DURATION, port)
|
||||||
print cmd
|
print cmd
|
||||||
output = subprocess.check_output(cmd, shell=True)
|
output = subprocess.check_output(cmd, shell=True)
|
||||||
stats = util.parse_wrk_output(output)
|
stats = util.parse_wrk_output(output)
|
||||||
|
|
|
@ -29,7 +29,6 @@ def main():
|
||||||
third_party.download_gn()
|
third_party.download_gn()
|
||||||
third_party.download_clang_format()
|
third_party.download_clang_format()
|
||||||
third_party.download_clang()
|
third_party.download_clang()
|
||||||
third_party.download_sccache()
|
|
||||||
third_party.maybe_download_sysroot()
|
third_party.maybe_download_sysroot()
|
||||||
|
|
||||||
write_lastchange()
|
write_lastchange()
|
||||||
|
|
|
@ -11,7 +11,7 @@ from util import add_env_path, executable_suffix, libdeno_path, make_env, rmtree
|
||||||
from util import root_path, run, third_party_path
|
from util import root_path, run, third_party_path
|
||||||
|
|
||||||
depot_tools_path = os.path.join(third_party_path, "depot_tools")
|
depot_tools_path = os.path.join(third_party_path, "depot_tools")
|
||||||
prebuilt_path = os.path.join(root_path, "prebuilt")
|
prebuilt_path = os.path.join(third_party_path, "prebuilt")
|
||||||
python_packages_path = os.path.join(third_party_path, "python_packages")
|
python_packages_path = os.path.join(third_party_path, "python_packages")
|
||||||
|
|
||||||
python_site_env = None
|
python_site_env = None
|
||||||
|
@ -186,16 +186,12 @@ def get_buildtools_tool_path(tool):
|
||||||
tool + executable_suffix)
|
tool + executable_suffix)
|
||||||
|
|
||||||
|
|
||||||
# Download the given item from Google storage.
|
def download_from_google_storage2(sha1_file, bucket):
|
||||||
def download_from_google_storage(item, bucket, base_dir):
|
|
||||||
download_script = os.path.join(depot_tools_path,
|
download_script = os.path.join(depot_tools_path,
|
||||||
"download_from_google_storage.py")
|
"download_from_google_storage.py")
|
||||||
sha1_file = os.path.join(base_dir, get_platform_dir_name(),
|
|
||||||
item + executable_suffix + ".sha1")
|
|
||||||
run([
|
run([
|
||||||
sys.executable,
|
sys.executable,
|
||||||
download_script,
|
download_script,
|
||||||
"--platform=" + sys.platform,
|
|
||||||
"--no_auth",
|
"--no_auth",
|
||||||
"--bucket=%s" % bucket,
|
"--bucket=%s" % bucket,
|
||||||
"--sha1_file",
|
"--sha1_file",
|
||||||
|
@ -204,6 +200,13 @@ def download_from_google_storage(item, bucket, base_dir):
|
||||||
env=google_env())
|
env=google_env())
|
||||||
|
|
||||||
|
|
||||||
|
# Download the given item from Google storage.
|
||||||
|
def download_from_google_storage(item, bucket, base_dir):
|
||||||
|
sha1_file = os.path.join(base_dir, get_platform_dir_name(),
|
||||||
|
item + executable_suffix + ".sha1")
|
||||||
|
download_from_google_storage2(sha1_file, bucket)
|
||||||
|
|
||||||
|
|
||||||
# Download the given item from Chrome Infrastructure Package Deployment.
|
# Download the given item from Chrome Infrastructure Package Deployment.
|
||||||
def download_from_cipd(item, version):
|
def download_from_cipd(item, version):
|
||||||
cipd_exe = os.path.join(depot_tools_path, "cipd")
|
cipd_exe = os.path.join(depot_tools_path, "cipd")
|
||||||
|
@ -248,14 +251,6 @@ def download_clang_format():
|
||||||
os.path.join(libdeno_path, "buildtools"))
|
os.path.join(libdeno_path, "buildtools"))
|
||||||
|
|
||||||
|
|
||||||
def download_sccache():
|
|
||||||
download_from_google_storage("sccache", "denoland", prebuilt_path)
|
|
||||||
|
|
||||||
|
|
||||||
def download_hyperfine():
|
|
||||||
download_from_google_storage("hyperfine", "denoland", prebuilt_path)
|
|
||||||
|
|
||||||
|
|
||||||
# Download clang by calling the clang update script.
|
# Download clang by calling the clang update script.
|
||||||
def download_clang():
|
def download_clang():
|
||||||
update_script = os.path.join(libdeno_path, "v8", "tools", "clang",
|
update_script = os.path.join(libdeno_path, "v8", "tools", "clang",
|
||||||
|
|
Loading…
Reference in a new issue