~whynothugo/shotman

5e7f201370b0f3fb63ef771e3b647004c4e1981a — Hugo Osvaldo Barrera 1 year, 2 months ago 699ddce publish-release-tarballs
Publish release tarballs with vendored dependencies

These are easy to build and ideal for downstream distributions. However,
this is currently blocked by
https://github.com/coreos/cargo-vendor-filterer/pull/61
1 files changed, 30 insertions(+), 0 deletions(-)

A publish-release.yaml
A publish-release.yaml => publish-release.yaml +30 -0
@@ 0,0 1,30 @@
# Publish a tarball with a new release plus dependencies.
#
# Usage: hut builds submit publish-release.yaml --follow

image: alpine/edge
packages:
  - cargo
  - libxkbcommon
  - libxkbcommon-dev
  - rust
  # REQUIRES: https://github.com/coreos/cargo-vendor-filterer/pull/61
  - cargo-vendor-filterer
sources:
  - https://git.sr.ht/~whynothugo/shotman
triggers:
  - action: email
    condition: failure
    to: Hugo Osvaldo Barrera <hugo@whynothugo.nl>
tasks:
  - vendor: |
      cd shotman
      mkdir .cargo
      cargo-vendor-filterer  --platform x86_64-unknown-linux-musl > .cargo/config.toml
      rm -rf .git
      # TODO: put a file with a hardcoded version?
  - package: |
      NAME=$(shotman-v$(git describe --exact-match --tags))
      mv shotman $NAME
      tar c $NAME | gzip > "$NAME-src+deps.gz"
      hut git artifact upload "$NAME-src+deps.gz"