---
platforms:
  macos:
    build_flags:
    # For historical reasons, the default platform for Apple builds is iOS. This
    # ensures that we build artifacts that run on macOS.
    - "--cpu=darwin_x86_64"
    - "--apple_platform_type=macos"
    build_targets:
    - "//examples/..."
    test_flags:
    # For historical reasons, the default platform for Apple builds is iOS. This
    # ensures that we build artifacts that run on macOS.
    - "--cpu=darwin_x86_64"
    - "--apple_platform_type=macos"
    test_targets:
    - "//examples/..."
  ubuntu1804:
    build_flags:
    # On Linux, we look for Swift toolchain binaries on the path. We may be able
    # to change this when we start auto-downloading toolchains (see
    # https://github.com/bazelbuild/rules_swift/issues/4).
    - "--action_env=PATH"
    build_targets:
    - "//examples/..."
    - "-//examples/apple/..."
    test_flags:
    - "--action_env=PATH"
    test_targets:
    - "//examples/..."
    - "-//examples/apple/..."

---
platforms:
  macos:
    build_flags:
    # For historical reasons, the default platform for Apple builds is iOS. This
    # ensures that we build artifacts that run on macOS.
    - "--cpu=darwin_x86_64"
    - "--apple_platform_type=macos"
    build_targets:
    - "//examples/..."
    test_flags:
    # For historical reasons, the default platform for Apple builds is iOS. This
    # ensures that we build artifacts that run on macOS.
    - "--cpu=darwin_x86_64"
    - "--apple_platform_type=macos"
    test_targets:
    - "//examples/..."
  ubuntu1804:
    build_flags:
    # On Linux, we look for Swift toolchain binaries on the path. We may be able
    # to change this when we start auto-downloading toolchains (see
    # https://github.com/bazelbuild/rules_swift/issues/4).
    - "--action_env=PATH"
    build_targets:
    - "--"
    - "//examples/..."
    - "-//examples/apple/..."
    test_flags:
    - "--action_env=PATH"
    test_targets:
    - "--"
    - "//examples/..."
    - "-//examples/apple/..."

Add "--" to the targets to fix the label parsing.
Add "--" to the targets to fix the label parsing.

Unfortunately the bazelci.py script doesn't insert the argument separator yet, so we have to add it manually in the test_targets for now.

Closes #125.

RELNOTES: None.
PiperOrigin-RevId: 228336865
