IntersectMBO / cardano-cli

This repository contains sources for the command-line interface (CLI) tool for interacting with the Cardano blockchain.
Apache License 2.0
39 stars 14 forks source link

Fix production of Linux static binaries in release workflow #839

Closed smelc closed 2 months ago

smelc commented 2 months ago

Changelog

- description: |
    Fix production of static binaries in releases (by adapting to changes in Hydra's job names)
# uncomment types applicable to the change:
  type:
  # - feature        # introduces a new feature
  # - breaking       # the API has changed in a breaking way
  # - compatible     # the API has changed but is non-breaking
  # - optimisation   # measurable performance improvements
  # - refactoring    # QoL changes
  # - bugfix         # fixes a defect
  # - test           # fixes/modifies tests
  # - maintenance    # not directly related to the code
  - release        # related to a new release preparation
  # - documentation  # change in code docs, haddocks...

Context

How to trust this PR

This PR's new workflow was triggered manually as follows:

gh workflow run .github/workflows/release-upload.yml -r $(git branch --show-current) -f target_tag=e5bb0adc4d43f1470619f7fcf5a4831f20910100

This makes this PR's workflow download the binaries from commit e5bb0adc4d43f1470619f7fcf5a4831f20910100 (which is on main). The workflow succeeded as visible here: https://github.com/IntersectMBO/cardano-cli/actions/runs/9959206931

Then you can download the artifact:

image

And run file on it:

05:13:57 HOME/Downloads → file ./cardano-cli-x86_64-linux
./cardano-cli-x86_64-linux: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, not stripped