Build matrix values in key?

Hey. I’m using a build matrix, and trying to put the key in the build steps like so:

steps:
  - label: "{{matrix.target}} {{matrix.platform}}"
    key: "{{matrix.target}}-{{matrix.platform}}"
    command: "ls -alph"
    matrix:
      setup:
        target:
          - "A"
        platform:
          - "Win"
          - "Linux"

But buildkite won’t accept the yaml. I get the error message:
One of the steps you provided was invalid: Step keys may only contain alphanumeric characters, underscores, dashes and colons

This appears to happen on the buildkite side, not the agent.

Hello, Donal!

You’re getting the error because - according to the Buildkite documentation - you can’t use matrix values in other attributes, including step keys and concurrency groups. This is intended behavior.

Best!