Skip to content

Add support for Bzlmod, Bazel 7/8, Ubuntu 24.04 (fixes #515, fixes #516, fixes #514) #1939

Add support for Bzlmod, Bazel 7/8, Ubuntu 24.04 (fixes #515, fixes #516, fixes #514)

Add support for Bzlmod, Bazel 7/8, Ubuntu 24.04 (fixes #515, fixes #516, fixes #514) #1939

Workflow file for this run

name: "build protobufs"
on:
push:
branches:
- main
- '*-dev'
pull_request:
branches:
- main
- '*-dev'
schedule:
- cron: "0 0 * * *"
jobs:
build:
runs-on: ubuntu-22.04
env:
BAZEL: bazelisk-linux-amd64
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Mount bazel cache
uses: actions/cache@v2
with:
# See https://docs.bazel.build/versions/master/output_directories.html
path: "~/.cache/bazel"
# Create a new cache entry whenever Bazel files change.
# See https://docs.github.com/en/actions/guides/caching-dependencies-to-speed-up-workflows
key: bazel-${{ runner.os }}-build-${{ hashFiles('**/*.bzl', '**/*.bazel') }}
restore-keys: |
bazel-${{ runner.os }}-build-
- name: Build proto/
run: cd proto && bazel build //... && bazel test //...
- name: Build bazel/example/using-workspace/
run: cd bazel/example/using-workspace && bazel build //...
- name: Build bazel/example/using-bzlmod/
run: cd bazel/example/using-bzlmod && bazel build //...