mirror of
https://github.com/vale981/ray
synced 2025-03-06 18:41:40 -05:00

* Fix common.fbs rename (due to apache/arrow/commit/bef9a1c251397311a6415d3dc362ef419d154caa) * Add missing COPTS * Use socketpair(AF_INET) if boost::asio::local is unavailable (e.g. on Windows) * Fix compile bug in service_based_gcs_client_test.cc (fix build breakage in #6686) * Work around googletest/gmock inability to specify override to avoid -Werror,-Winconsistent-missing-override * Fix missing override on IsPlasmaBuffer() * Fix missing libraries for streaming * Factor out install-toolchains.sh * Put some Bazel flags into .bazelrc * Fix jni_md.h missing inclusion * Add ~/bin to PATH for Bazel * Change echo $$(date) > $@ to date > $@ * Fix lots of unquoted paths * Add system() call checks for Windows Co-authored-by: GitHub Web Flow <noreply@github.com>
102 lines
2.9 KiB
YAML
102 lines
2.9 KiB
YAML
name: CI
|
|
|
|
env:
|
|
LLVM_VERSION_WINDOWS: 9.0.0
|
|
DEBIAN_FRONTEND: noninteractive
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
iwyu:
|
|
name: ${{ matrix.name }}
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
name: [
|
|
ubuntu-clang-iwyu,
|
|
]
|
|
include:
|
|
- name: ubuntu-clang-iwyu
|
|
os: ubuntu-latest
|
|
compiler: clang
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v1
|
|
with:
|
|
fetch-depth: 1
|
|
- name: Setup Bazel
|
|
shell: bash
|
|
env:
|
|
BAZEL_CACHE_CREDENTIAL_B64: ${{ secrets.BAZEL_CACHE_CREDENTIAL_B64 }}
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: ./ci/travis/install-bazel.sh
|
|
- name: Setup Clang Include-What-You-Use
|
|
shell: bash
|
|
run: |
|
|
sudo apt-get install iwyu
|
|
- name: Perform build
|
|
continue-on-error: true
|
|
shell: bash
|
|
env:
|
|
CC: ${{ matrix.compiler }}
|
|
run: |
|
|
# TODO(mehrdadn): Replace this with the same build script as below, once we factor that out
|
|
. ./ci/travis/build-helper.sh prep_build_env
|
|
bazel --batch build \
|
|
--compilation_mode=fastbuild \
|
|
--config=iwyu \
|
|
--keep_going \
|
|
--show_progress_rate_limit=5 \
|
|
--show_task_finish \
|
|
--show_timestamps \
|
|
--verbose_failures \
|
|
"//:*" # TODO(mehrdadn): Should be "//:*", but we get a linking error with _streaming.so
|
|
build:
|
|
name: ${{ matrix.name }}
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
# Github Actions requires a single row to be added to the build matrix.
|
|
# See https://help.github.com/en/articles/workflow-syntax-for-github-actions.
|
|
name: [
|
|
windows-clang-cl,
|
|
]
|
|
include:
|
|
- name: windows-clang-cl
|
|
os: windows-latest
|
|
compiler: clang-cl
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v1
|
|
with:
|
|
fetch-depth: 1
|
|
- name: Setup Bazel
|
|
shell: bash
|
|
env:
|
|
BAZEL_CACHE_CREDENTIAL_B64: ${{ secrets.BAZEL_CACHE_CREDENTIAL_B64 }}
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: ./ci/travis/install-bazel.sh
|
|
- name: Install C/C++ toolchains
|
|
if: matrix.compiler == 'clang' || matrix.compiler == 'clang-cl'
|
|
shell: bash
|
|
env:
|
|
CC: ${{ matrix.compiler }}
|
|
run: ./ci/travis/install-toolchains.sh "${CC%%-*}"
|
|
- name: Install MSYS2 (only needed if some shell commands are missing)
|
|
if: false && runner.os == 'Windows'
|
|
uses: numworks/setup-msys2@v1
|
|
with:
|
|
update: false
|
|
- name: Perform build
|
|
shell: bash
|
|
run: |
|
|
. ./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"
|