executor: go-machine
steps:
  - checkout
  - setup-go
  - restore_go_mod_cache
  - attach_workspace:
      at: .
  - run:
      name: Build dev binary
      command: |
        # Move dev UI assets to expected location
        rm -rf ./pkg
        mkdir ./pkg

        # Build dev binary
        make ci-bootstrap dev
  - persist_to_workspace:
      root: .
      paths:
        - bin
