bmputil 1.1.0

Black Magic Probe companion utility
Documentation
# SPDX-License-Identifier: MIT OR Apache-2.0
# SPDX-FileCopyrightText: 2026 1BitSquared <info@1bitsquared.com>
# SPDX-FileContributor: Written by Rachel Mant <git@dragonmux.network>

when:
  - event: pull_request
  - event: push
    branch: main
  - event: manual

steps:
  - name: build
    image: codeberg.org/blackmagic-debug/blackmagic-ci-images/blackmagic-rust
    pull: true
    commands: |
      cargo --version
      rustc --version
      cargo llvm-cov --version

      cargo b
      cargo t
      cargo llvm-cov --all-features --workspace --codecov --output-path codecov.json
  - name: codecov
    image: docker.io/woodpeckerci/plugin-codecov
    settings:
      files:
        - codecov.json
      token:
        from_secret: codecov_token
  - name: release-mode build
    image: codeberg.org/blackmagic-debug/blackmagic-ci-images/blackmagic-rust
    when:
      - event: push
    commands: |
      cargo b -r
      cd target/release
      tar cJf bmputil.tar.xz bmputil-cli
  - name: upload build
    image: docker.io/woodpeckerci/plugin-s3
    when:
      - event: push
    settings:
      access_key:
        from_secret: bucket_access_key
      secret_key:
        from_secret: bucket_secret_key
      endpoint:
        from_secret: bucket_uri
      bucket: blackmagic-artifacts
      acl: public-read
      source: target/release/bmputil.tar.xz
      target: bmputil/linux/x86_64/latest