mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-12-08 00:00:12 +03:00
Some checks failed
build / bcachefs-tools-msrv (push) Has been cancelled
.deb build orchestrator / source-only (push) Has been cancelled
.deb build orchestrator / buildd (map[name:debian version:forky], map[arch:amd64 runs-on:ubuntu-latest]) (push) Has been cancelled
.deb build orchestrator / buildd (map[name:debian version:forky], map[arch:arm64 runs-on:ubuntu-24.04-arm]) (push) Has been cancelled
.deb build orchestrator / buildd (map[name:debian version:trixie], map[arch:amd64 runs-on:ubuntu-latest]) (push) Has been cancelled
.deb build orchestrator / buildd (map[name:debian version:trixie], map[arch:arm64 runs-on:ubuntu-24.04-arm]) (push) Has been cancelled
.deb build orchestrator / buildd (map[name:debian version:unstable], map[arch:amd64 runs-on:ubuntu-latest]) (push) Has been cancelled
.deb build orchestrator / buildd (map[name:debian version:unstable], map[arch:arm64 runs-on:ubuntu-24.04-arm]) (push) Has been cancelled
.deb build orchestrator / buildd (map[name:ubuntu version:plucky], map[arch:amd64 runs-on:ubuntu-latest]) (push) Has been cancelled
.deb build orchestrator / buildd (map[name:ubuntu version:plucky], map[arch:arm64 runs-on:ubuntu-24.04-arm]) (push) Has been cancelled
.deb build orchestrator / buildd (map[name:ubuntu version:questing], map[arch:amd64 runs-on:ubuntu-latest]) (push) Has been cancelled
.deb build orchestrator / buildd (map[name:ubuntu version:questing], map[arch:arm64 runs-on:ubuntu-24.04-arm]) (push) Has been cancelled
.deb build orchestrator / reprotest (push) Has been cancelled
.deb build orchestrator / publish (push) Has been cancelled
Nix Flake actions / nix-matrix (push) Has been cancelled
Nix Flake actions / ${{ matrix.name }} (${{ matrix.system }}) (push) Has been cancelled
Switch to cargo-vendor-filter, which allows us to filter out dependencies that are only needed on platforms we won't be building for. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
61 lines
1.9 KiB
Bash
Executable File
61 lines
1.9 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
set -o errexit
|
|
|
|
version=$1
|
|
|
|
git checkout v$version
|
|
git clean -xfd
|
|
|
|
cargo license > COPYING.rust-dependencies
|
|
|
|
git ls-files|
|
|
tar --create --file bcachefs-tools-$version.tar -T - \
|
|
--transform="s_^_bcachefs-tools-$version/_"
|
|
|
|
tar --append --file bcachefs-tools-$version.tar \
|
|
--transform="s_^_bcachefs-tools-$version/_" \
|
|
COPYING.rust-dependencies
|
|
|
|
zstd -z --ultra bcachefs-tools-$version.tar
|
|
|
|
gpg --armor --detach-sign bcachefs-tools-$version.tar
|
|
mv bcachefs-tools-$version.tar.asc bcachefs-tools-$version.tar.sign
|
|
|
|
gpg --armor --sign bcachefs-tools-$version.tar
|
|
|
|
scp bcachefs-tools-$version.tar.zst evilpiepirate.org:/var/www/htdocs/bcachefs-tools/
|
|
scp bcachefs-tools-$version.tar.asc evilpiepirate.org:/var/www/htdocs/bcachefs-tools/
|
|
scp bcachefs-tools-$version.tar.sign evilpiepirate.org:/var/www/htdocs/bcachefs-tools/
|
|
|
|
cargo-vendor-filterer
|
|
|
|
mkdir .cargo
|
|
cat > .cargo/config.toml <<-ZZ
|
|
[source.crates-io]
|
|
replace-with = "vendored-sources"
|
|
|
|
[source."git+https://evilpiepirate.org/git/rust-bindgen.git"]
|
|
git = "https://evilpiepirate.org/git/rust-bindgen.git"
|
|
replace-with = "vendored-sources"
|
|
|
|
[source.vendored-sources]
|
|
directory = "vendor"
|
|
ZZ
|
|
|
|
cp bcachefs-tools-$version.tar bcachefs-tools-vendored-$version.tar
|
|
tar --append --file bcachefs-tools-vendored-$version.tar \
|
|
--transform="s_^_bcachefs-tools-$version/_" \
|
|
.cargo vendor
|
|
|
|
zstd -z --ultra bcachefs-tools-vendored-$version.tar
|
|
|
|
gpg --armor --detach-sign bcachefs-tools-vendored-$version.tar
|
|
mv bcachefs-tools-vendored-$version.tar.asc bcachefs-tools-vendored-$version.tar.sign
|
|
|
|
gpg --armor --sign bcachefs-tools-vendored-$version.tar
|
|
|
|
scp bcachefs-tools-vendored-$version.tar.zst evilpiepirate.org:/var/www/htdocs/bcachefs-tools/
|
|
scp bcachefs-tools-vendored-$version.tar.asc evilpiepirate.org:/var/www/htdocs/bcachefs-tools/
|
|
scp bcachefs-tools-vendored-$version.tar.sign evilpiepirate.org:/var/www/htdocs/bcachefs-tools/
|