Skip to content

Update dependency rules_pycross to v0.6.0 #789

Update dependency rules_pycross to v0.6.0

Update dependency rules_pycross to v0.6.0 #789

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
lint:
runs-on: ubuntu-latest
permissions:
checks: write
contents: read
steps:
- uses: actions/checkout@v4
- uses: trunk-io/trunk-action@v1