- name: Whisker backend
  run:
    when: "${CHANGE_IN(whisker-backend)}"
  execution_time_limit:
    minutes: 30
  dependencies:
    - Prerequisites
  task:
    prologue:
      commands:
        - cd whisker-backend
    jobs:
      - name: "Whisker backend: CI"
        commands:
          - ../.semaphore/run-and-monitor make-ci.log make ci
      - name: "Whisker backend: build multi-arch"
        matrix:
          - env_var: ARCH
            values:
              - arm64
              - ppc64le
              - s390x
        commands:
          - ../.semaphore/run-and-monitor image-$ARCH.log make build ARCH=$ARCH
