name: Build disk-mapper
description: Build the Constellation disk-mapper binary

inputs:
  outputPath:
    description: "Output path of the binary"
    default: "./disk-mapper"
    required: true

# Linux runner only (Docker required)
runs:
  using: "composite"
  steps:
    - name: Build the disk-mapper
      shell: bash
      run: |
        echo "::group::Build the disk-mapper"
        mkdir -p build && cd build
        cmake ..
        make disk-mapper
        mv -n disk-mapper "${{ inputs.outputPath }}"
        echo "::endgroup::"
