Skip to content

Support for bazel 9 #230

Support for bazel 9

Support for bazel 9 #230

Workflow file for this run

---
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- '*'
paths-ignore:
- '**.md'
env:
TERM: dumb
TMPDIR: "/tmp"
jobs:
checks:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6.0.1
- uses: bazel-contrib/setup-bazel@0.15.0
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
repository-cache: true
- name: build
run: ./scripts/ci_build.sh
- name: formating
run: |
bazel run //:format
if [[ $(git status --porcelain) ]]; then echo "**** run 'bazel run //:format' to fix formatting errors"; exit 1; fi
- name: test
run: ./scripts/ci_test.sh
- name: verify-rules-generation
run: ./scripts/ci_verify_rules_generation.sh
examples:
runs-on: ubuntu-24.04
needs: [checks]
container: ghcr.io/menny/android_bazel:1.22.3
strategy:
matrix:
example_name: [plain_java, java_plugin, kotlin, android, android-kotlin]
fail-fast: false
steps:
- uses: actions/checkout@v6.0.1
- uses: bazel-contrib/setup-bazel@0.15.0
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
repository-cache: true
- name: build-examples
run: ./scripts/ci_build_examples.sh ${{ matrix.example_name }}
- name: regenerate-examples
run: ./scripts/ci_regenerate_examples.sh ${{ matrix.example_name }}