Skip to content

Commit

Permalink
Bazel mirrors (ray-project#7385)
Browse files Browse the repository at this point in the history
* Switch to mirrors.bazel.build where possible

* Switch from .zip to .tar.gz for smaller downloads (it's also the default download on UNIX)

* Use direct GitHub URLs in Bazel files for clarity

* Don't pass patches to local_repository

* Remove github_repository()

* Switch to GitHub actions/checkout@v2 which is faster

* Use faster extraction method for LLVm on Windows

* Move LLVM_VERSION_WINDOWS to the shell script since it's not a CI-specific value

* Change GITHUB_TOKEN to GITHUB

* Don't show timestamps for GitHub Actions

* Factor out some options from GitHub Actions

* Tell Bazel to stay on the same volume in GitHun Actions

* Display progress output when downloading toolchains

Co-authored-by: GitHub Web Flow <[email protected]>
  • Loading branch information
mehrdadn and web-flow authored Mar 1, 2020
1 parent 83e06cd commit 44aded5
Show file tree
Hide file tree
Showing 5 changed files with 147 additions and 155 deletions.
15 changes: 2 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: CI

env:
LLVM_VERSION_WINDOWS: 9.0.0
DEBIAN_FRONTEND: noninteractive

on: [push, pull_request]
Expand All @@ -22,7 +21,7 @@ jobs:
compiler: clang
steps:
- name: Checkout repository
uses: actions/checkout@v1
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Setup Bazel
Expand All @@ -47,10 +46,6 @@ jobs:
--compilation_mode=fastbuild \
--config=iwyu \
--keep_going \
--show_progress_rate_limit=5 \
--show_task_finish \
--show_timestamps \
--verbose_failures \
"//:*"
build:
name: ${{ matrix.name }}
Expand All @@ -69,9 +64,7 @@ jobs:
compiler: clang-cl
steps:
- name: Checkout repository
uses: actions/checkout@v1
with:
fetch-depth: 1
uses: actions/checkout@v2
- name: Setup Bazel
shell: bash
env:
Expand All @@ -95,8 +88,4 @@ jobs:
. ./ci/travis/build-helper.sh prep_build_env
bazel --batch build \
--keep_going \
--show_progress_rate_limit=5 \
--show_task_finish \
--show_timestamps \
--verbose_failures \
"//:ray_pkg" # TODO(mehrdadn): Should be "//:*", but we get a linking error with _streaming.so
Loading

0 comments on commit 44aded5

Please sign in to comment.