github: Add basic on-push workflow This workflow runs on Github. It currently fails, but it runs. Bug: b/338083578 Change-Id: I50c26bb889b20c40d9d34016266b580a8fcc5394 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/quickstart/bazel/+/207571 Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com> Reviewed-by: Ted Pudlik <tpudlik@google.com> Commit-Queue: Rob Mohr <mohrr@google.com>
diff --git a/.github/workflows/basic.yaml b/.github/workflows/basic.yaml new file mode 100644 index 0000000..57f0b58 --- /dev/null +++ b/.github/workflows/basic.yaml
@@ -0,0 +1,25 @@ +name: basic +run-name: presubmit run triggered by ${{ github.actor }} +on: [push] +jobs: + bazel-build-test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + submodules: recursive + - name: Get Bazel + uses: bazel-contrib/setup-bazel@0.8.1 + with: + # Avoid downloading Bazel every time. + bazelisk-cache: true + # Store build cache per workflow. + disk-cache: ${{ github.workflow }} + # Share repository cache between workflows. + repository-cache: true + - name: Bazel Build + run: bazel build ... + - name: Bazel Test + run: bazel test ...