aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominic Hamon <dominichamon@users.noreply.github.com>2020-12-22 11:47:52 +0000
committerGitHub <noreply@github.com>2020-12-22 11:47:52 +0000
commita6d08aea4b70c5532736924377df8be62ef2067a (patch)
treea60f43fe01ce9f8e9790eb6a0148b9123abfc29b
parentd8254bb9eb5f6deeddee639d0b27347e186e0a84 (diff)
downloadgoogle-benchmark-a6d08aea4b70c5532736924377df8be62ef2067a.tar.gz
Create workflow to exercise bazel build (#1079)
* Create workflow to exercise bazel build
-rw-r--r--.github/workflows/bazel.yml33
1 files changed, 33 insertions, 0 deletions
diff --git a/.github/workflows/bazel.yml b/.github/workflows/bazel.yml
new file mode 100644
index 0000000..d6bbe62
--- /dev/null
+++ b/.github/workflows/bazel.yml
@@ -0,0 +1,33 @@
+name: bazel
+
+on:
+ push: {}
+ pull_request: {}
+
+jobs:
+ build-and-test:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v1
+
+ - name: mount bazel cache
+ uses: actions/cache@v1
+ with:
+ path: "/home/runner/.cache/bazel"
+ key: bazel
+
+ - name: install bazelisk
+ run: |
+ curl -LO "https://github.com/bazelbuild/bazelisk/releases/download/v1.1.0/bazelisk-linux-amd64"
+ mkdir -p "${GITHUB_WORKSPACE}/bin/"
+ mv bazelisk-linux-amd64 "${GITHUB_WORKSPACE}/bin/bazel"
+ chmod +x "${GITHUB_WORKSPACE}/bin/bazel"
+
+ - name: build
+ run: |
+ "${GITHUB_WORKSPACE}/bin/bazel" build //...
+
+ - name: test
+ run: |
+ "${GITHUB_WORKSPACE}/bin/bazel" test //test/...