name: Build bootstrapper
description: Build the Constellation bootstrapper binary

inputs:
  outputPath:
    description: "Output path of the binary"
    default: "./bootstrapper"
    required: true

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