matrix: &matrix
  bazel:
  - 7.x
  platform:
  - debian10
  - debian11
  - macos
  - macos_arm64
  - ubuntu2004
  - ubuntu2204

tasks:
  target:
    name: Verify build targets
    platform: ${{ platform }}
    bazel: ${{ bazel }}
    build_flags:
    - '--cxxopt=-std=c++14'
    build_targets:
    - '@trompeloeil//...'
    - '-@trompeloeil//test/...'

bcr_test_module:
  module_path: "test"
  matrix: *matrix
  tasks:
    run_test_module:
      name: "Run test module"
      platform: ${{ platform }}
      bazel: ${{ bazel }}
      build_flags:
      - '--cxxopt=-std=c++14'
      build_targets:
      - //...
      test_flags:
      - '--cxxopt=-std=c++14'
      test_targets:
      - //...
