Skip to content

Add MODULE.bazel. #4

Add MODULE.bazel.

Add MODULE.bazel. #4

Workflow file for this run

on:
push:
branches:
- "main"
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
buildifier:
uses: ./.github/workflows/buildifier.yml
bazel-6:
strategy:
fail-fast: false
matrix:
bazel_version:
- 6.5.0
- 7.1.1
compilation-mode: [dbg, fastbuild, opt]
target:
- macos-latest
- macos-14
bzlmod:
- enable_bzlmod
- noenable_bzlmod
runs-on: ${{ matrix.target }}
needs: [buildifier]
env:
USE_BAZEL_VERSION: ${{ matrix.bazel_version }}
name: ${{ matrix.bazel_version }}/${{ matrix.target }}/${{ matrix.compilation-mode }}/${{ matrix.bzlmod }}
steps:
- name: Setup bazel
uses: bazel-contrib/setup-bazel@0.8.1
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}-${{ matrix.target }}-${{ matrix.compilation-mode }}-${{ matrix.bzlmod }}
bazelisk-version: 1.19.0
- name: Checkout code
uses: actions/checkout@v4
- name: Build with Bazel
run: |
bazel build --config=buildbuddy \
-c ${{ matrix.compilation-mode }} \
--${{ matrix.bzlmod }} \
--remote_header=x-buildbuddy-api-key="${{ secrets.BUILDBUDDY_API_KEY }}" \
...