Skip to content

chore: add build_test targets to examples #191

chore: add build_test targets to examples

chore: add build_test targets to examples #191

Workflow file for this run

name: Default
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [main]
pull_request:
branches: [main]
# Allows manually triggering this workflow from the Actions tab.
workflow_dispatch:
jobs:
distros:
strategy:
matrix:
os:
- ubuntu-20.04
- ubuntu-22.04
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: bazelbuild/setup-bazelisk@v2
- name: Test
run: |
./.github/workflows/configurebb.sh
bazel test --config ci //...
env:
BUILDBUDDY_API_KEY: ${{ secrets.BUILDBUDDY_API_KEY }}
compilation_modes:
strategy:
matrix:
compilation_mode:
- fastbuild
- dbg
- opt
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: bazelbuild/setup-bazelisk@v2
- name: Test
run: |
./.github/workflows/configurebb.sh
bazel test --config ci --compilation_mode ${{ matrix.compilation_mode }} //...
env:
BUILDBUDDY_API_KEY: ${{ secrets.BUILDBUDDY_API_KEY }}
sanitizers:
strategy:
matrix:
sanitizer:
- asan
- lsan
- tsan
- ubsan
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: bazelbuild/setup-bazelisk@v2
- name: Test ${{ matrix.sanitizer }}
run: |
./.github/workflows/configurebb.sh
bazel test --config ci --config ${{ matrix.sanitizer }} //tests/sanitizers:${{ matrix.sanitizer }}_test
env:
BUILDBUDDY_API_KEY: ${{ secrets.BUILDBUDDY_API_KEY }}
rbe:
if: (github.ref == 'refs/heads/main' || contains(github.head_ref, 'rbe')) && env.BUILDBUDDY_API_KEY != ''

Check failure on line 66 in .github/workflows/default.yaml

View workflow run for this annotation

GitHub Actions / Default

Invalid workflow file

The workflow is not valid. .github/workflows/default.yaml (Line: 66, Col: 9): Unrecognized named-value: 'env'. Located at position 74 within expression: (github.ref == 'refs/heads/main' || contains(github.head_ref, 'rbe')) && env.BUILDBUDDY_API_KEY != ''
strategy:
matrix:
os:
- ubuntu-20.04
- macos-11
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: bazelbuild/setup-bazelisk@v2
- name: Test with RBE
run: |
./.github/workflows/configurebb.sh
bazel test --config ci --config rbe //...
env:
BUILDBUDDY_API_KEY: ${{ secrets.BUILDBUDDY_API_KEY }}