Skip to content
Myr

ci: improve docs for manual build-and-publish scripts

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Andrew Gallant · committed by Andrew Gallant · parent c81caa6 · Browse files · 2 files+19 added−7 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+19 added−7 removed

  • other:+19 added−7 removed

2 files+19 added−7 removed

modified:ci/build-and-publish-deb+6 added-3 removed
1#!/bin/bash23set -e4D="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"53# This script builds a binary dpkg for Debian based distros. It does not4# currently run in CI, and is instead run manually and the resulting dpkg is5# uploaded to GitHub at the end of this script.6#7# Note that this requires 'cargo deb', which can be installed with8# 'cargo install cargo-deb'.9#10# This should be run from the root of the ripgrep repo.11#12# TODO: It looks like this script could be pretty easily ported into GitHub13# Actions?1415set -e16D="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"1718if ! command -V cargo-deb > /dev/null 2>&1; then19 echo "cargo-deb command missing" >&220 exit 121fi
37 unmodified lines
modified:ci/build-and-publish-m2+13 added-4 removed
1#!/bin/bash23# This script builds a ripgrep release for the aarch64-apple-darwin target.4# At time of writing (2023-11-21), GitHub Actions does not free Apple silicon5# runners. Since I have somewhat recently acquired an M2 mac mini, I just use6# this script to build the release tarball and upload it with `gh`.7#8# Once GitHub Actions has proper support for Apple silicon, we should add it9# to our release workflow and drop this script.1011set -e1213version="$1"14if [ -z "$version" ]; then
5 unmodified lines
20 echo "version does not match Cargo.toml" >&221 exit 122fi2324target=aarch64-apple-darwin16cargo build --release --features pcre217BIN=target/release/rg18NAME=ripgrep-$version-aarch64-apple-darwin25cargo build --release --features pcre2 --target $target26BIN=target/$target/release/rg27NAME=ripgrep-$version-$target28ARCHIVE="deployment/m2/$NAME"2930mkdir -p "$ARCHIVE"/{complete,doc}22cp target/release/rg "$ARCHIVE"/31cp "$BIN" "$ARCHIVE"/32strip "$ARCHIVE/rg"33cp {README.md,COPYING,UNLICENSE,LICENSE-MIT} "$ARCHIVE"/34cp {CHANGELOG.md,FAQ.md,GUIDE.md} "$ARCHIVE"/doc/35"$BIN" --generate complete-bash > "$ARCHIVE/complete/rg.bash"
8 unmodified lines