diff --git a/.bazelrc.remote b/.bazelrc.remote new file mode 100644 index 00000000000..f45d7a6fd2f --- /dev/null +++ b/.bazelrc.remote @@ -0,0 +1,7 @@ +build --bes_results_url=https://app.buildbuddy.io/invocation/ +build --bes_backend=grpcs://cloud.buildbuddy.io +# build --remote_cache=grpcs://cloud.buildbuddy.io + +# build --remote_download_minimal +# build --remote_retries=0 +# build --remote_timeout=10 diff --git a/.bazelversion b/.bazelversion new file mode 100644 index 00000000000..09b254e90c6 --- /dev/null +++ b/.bazelversion @@ -0,0 +1 @@ +6.0.0 diff --git a/.github/workflows/continuous-integration-workflow.yml b/.github/workflows/continuous-integration-workflow.yml new file mode 100644 index 00000000000..b7ea78e2a21 --- /dev/null +++ b/.github/workflows/continuous-integration-workflow.yml @@ -0,0 +1,28 @@ +name: Run all tests +on: [push] +jobs: + build: + name: test with ${{ matrix.ij_product }} + runs-on: ubuntu-20.04 + continue-on-error: ${{ matrix.experimental }} + strategy: + fail-fast: false + matrix: + ij_product: ['intellij-2022.1', 'intellij-2022.2', 'intellij-2022.3'] + experimental: [false] + steps: + - uses: actions/checkout@v2 + - name: bazel cache + uses: actions/cache@v2 + with: + path: ~/.bazel-repository-cache + key: ${{ github.ref }} + restore-keys: refs/heads/master + - name: run bazel + continue-on-error: ${{ matrix.experimental }} + run: > + bazel --bazelrc=.bazelrc.remote test //:ijwb_ce_tests + --repository_cache=~/.bazel-repository-cache + --define=ij_product=${{ matrix.ij_product }} + --keep_going + --test_output=errors diff --git a/WORKSPACE b/WORKSPACE index af1686b012a..4f6db321c24 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -641,3 +641,29 @@ jvm_maven_import_external( licenses = ["notice"], # Apache 2.0 server_urls = ["https://repo1.maven.org/maven2"], ) + +bazel_version = "31082327bdb64b7bf52dd55ae18d29e920e61025" + +bazel_repo_sha256 = "e8e1ac4bcab303f8f99c9b14ad3afbd059b84c516b7e76f6d9b89b8d5175594f" + +http_archive( + name = "bazel", + sha256 = bazel_repo_sha256, + strip_prefix = "bazel-" + bazel_version, + url = "https://github.com/bazelbuild/bazel/archive/%s.zip" % bazel_version, +) + +http_archive( + name = "io_buildbuddy_buildbuddy_toolchain", + sha256 = "9055a3e6f45773cd61931eba7b7cf35d6477ab6ad8fb2f18bf9815271fc682fe", + strip_prefix = "buildbuddy-toolchain-52aa5d2cc6c9ba7ee4063de35987be7d1b75f8e2", + urls = ["https://github.com/buildbuddy-io/buildbuddy-toolchain/archive/52aa5d2cc6c9ba7ee4063de35987be7d1b75f8e2.tar.gz"], +) + +load("@io_buildbuddy_buildbuddy_toolchain//:deps.bzl", "buildbuddy_deps") + +buildbuddy_deps() + +load("@io_buildbuddy_buildbuddy_toolchain//:rules.bzl", "buildbuddy") + +buildbuddy(name = "buildbuddy_toolchain")