Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented GitHub Actions Workflow for bazel build #51

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Bazel build

on:
push: {}
pull_request: {}

jobs:
build:
name: Build tcmalloc
runs-on: ubuntu-latest
steps:

- name: Checkout repository
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.

with:
bazel-version: '2.0.0'

- name: Setup cache
uses: actions/cache@v2
with:
path: "/home/runner/.cache/bazel"
key: bazel

- name: Build
run: bazel build //...
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# TCMalloc

![Bazel build](https://github.com/google/tcmalloc/workflows/Bazel%20build/badge.svg)

This repository contains the TCMalloc C++ code.

TCMalloc is Google's customized implementation of C's `malloc()` and C++'s
Expand Down