matrix:
  platform:
  - debian10
  - ubuntu2004
  - windows
  bazel:
  - 7.x
  - 6.x
tasks:
  verify_targets:
    name: Verify build targets
    platform: ${{ platform }}
    bazel: ${{ bazel }}
    build_flags:
    - '--cxxopt=-std=c++14'
    - '--host_cxxopt=-std=c++14'
    build_targets:
    - '@jwt_verify_lib//:jwt_verify_lib'
    - '@jwt_verify_lib//:simple_lru_cache_lib'
  verify_macos_targets:
    name: Verify build targets
    platform: macos
    bazel: ${{ bazel }}
    build_flags:
    - '--cxxopt=-std=c++14'
    - '--host_cxxopt=-std=c++14'    
    - '--sandbox_block_path=/usr/local'
    build_targets:
    - '@jwt_verify_lib//:jwt_verify_lib'
    - '@jwt_verify_lib//:simple_lru_cache_lib'
  verify_macos_arm64_targets:
    name: Verify build targets
    platform: macos_arm64
    bazel: ${{ bazel }}
    build_flags:
    - '--cxxopt=-std=c++14'
    - '--host_cxxopt=-std=c++14'    
    - '--sandbox_block_path=/usr/local'
    build_targets:
    - '@jwt_verify_lib//:jwt_verify_lib'
    - '@jwt_verify_lib//:simple_lru_cache_lib'
