Skip to content

Work around relative symlinks that break when replicated inside runfiles #1067

Work around relative symlinks that break when replicated inside runfiles

Work around relative symlinks that break when replicated inside runfiles #1067

Workflow file for this run

---
name: CI
on:
push:
branches: [main]
pull_request:
permissions: read-all
jobs:
test:
runs-on: ${{ matrix.os }}-latest
env:
USE_BAZEL_VERSION: ${{ matrix.bazel-version }}
BUILDBUDDY_RW_API_KEY: ${{ secrets.BUILDBUDDY_RW_API_KEY }}
strategy:
fail-fast: false
matrix:
bazel-version: [6.x, 7.x]
os: [ubuntu, macos]
external_dependency_system: [bzlmod, workspace]
exclude:
# Don't expect Bazel compatibility issues depending on OS, so speed this up
- bazel-version: 6.x
os: macos
include:
- external_dependency_system: bzlmod
flags: --enable_bzlmod
- external_dependency_system: workspace
flags: --noenable_bzlmod
steps:
- uses: actions/checkout@v4
- name: Use BuildBuddy RW API key instead of public readonly key
run: sed -i.bak 's#x-buildbuddy-api-key=.*#x-buildbuddy-api-key=${{ env.BUILDBUDDY_RW_API_KEY }}#' .bazelrc
if: ${{ env.BUILDBUDDY_RW_API_KEY }}
- run: echo "common ${{ matrix.flags }}" >> .bazelrc
# Don't want to bother with hundreds of lines of Workspace setup for the rules_pycross compat test
- if: matrix.external_dependency_system == 'workspace' || matrix.os == 'macos'
run: echo "tests/rules_pycross" >> .bazelignore
- run: bazel test //...
examples:
runs-on: ubuntu-latest
env:
USE_BAZEL_VERSION: ${{ matrix.bazel-version }}
strategy:
fail-fast: false
matrix:
bazel-version: [6.x, 7.x]
steps:
- uses: actions/checkout@v4
- run: examples/integration_test.sh
determinism:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: tests/determinism/reproducible_shas.sh
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: pre-commit/action@v3.0.1