diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 000000000..84910131a --- /dev/null +++ b/.github/workflows/build.yml @@ -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 + 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 //... diff --git a/README.md b/README.md index c848b4838..a40e3ace0 100644 --- a/README.md +++ b/README.md @@ -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