Skip to content

Implemented GitHub Actions Workflow for bazel build#51

Open
leozz37 wants to merge 11 commits intogoogle:masterfrom
leozz37:master
Open

Implemented GitHub Actions Workflow for bazel build#51
leozz37 wants to merge 11 commits intogoogle:masterfrom
leozz37:master

Conversation

@leozz37
Copy link

@leozz37 leozz37 commented Oct 4, 2020

GitHub Actions

Implemented a CI to build bazil that runs on every push or pull request and a badge on README.md.

An example of it successfully running here.

@google-cla google-cla bot added the cla: yes label Oct 4, 2020
uses: actions/checkout@v2

- name: Setup bazel
uses: jwlawson/actions-setup-bazel@v1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this step necessary?

It looks like some of the virtual environments for Github Actions already install bazel (or have a helper ready to go): https://github.com/actions/virtual-environments/blob/main/images/linux/scripts/installers/bazel.sh

I'm also looking at https://github.com/googleapis/google-cloud-cpp/pull/4333/files for reference.

@AustinSchuh
Copy link

@fweikert, @philwo What about bazelci here?

@philwo
Copy link
Member

philwo commented Dec 2, 2020

@fweikert, @philwo What about bazelci here?

Thanks for mentioning :) Using Bazel CI would be straight-forward here, too, basically a matter of checking in this file as .bazelci/pipeline.yml:

---
tasks:
  ubuntu1804:
    build_targets:
    - "//..."
    test_targets:
    - "//..."

and pinging us here https://github.com/bazelbuild/continuous-integration/issues/new/choose so that we can create the pipeline on Bazel's CI.

Some docs about Bazel's CI: https://github.com/bazelbuild/continuous-integration/blob/master/buildkite/README.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants