mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-05-19 01:30:21 -07:00
ci: improve docs for manual build-and-publish scripts
This commit is contained in:
parent
c81caa673b
commit
040d8f2171
@ -1,8 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -e
|
|
||||||
D="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
|
|
||||||
|
|
||||||
# This script builds a binary dpkg for Debian based distros. It does not
|
# This script builds a binary dpkg for Debian based distros. It does not
|
||||||
# currently run in CI, and is instead run manually and the resulting dpkg is
|
# currently run in CI, and is instead run manually and the resulting dpkg is
|
||||||
# uploaded to GitHub at the end of this script.
|
# uploaded to GitHub at the end of this script.
|
||||||
@ -11,6 +8,12 @@ D="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
|
|||||||
# 'cargo install cargo-deb'.
|
# 'cargo install cargo-deb'.
|
||||||
#
|
#
|
||||||
# This should be run from the root of the ripgrep repo.
|
# This should be run from the root of the ripgrep repo.
|
||||||
|
#
|
||||||
|
# TODO: It looks like this script could be pretty easily ported into GitHub
|
||||||
|
# Actions?
|
||||||
|
|
||||||
|
set -e
|
||||||
|
D="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
|
||||||
|
|
||||||
if ! command -V cargo-deb > /dev/null 2>&1; then
|
if ! command -V cargo-deb > /dev/null 2>&1; then
|
||||||
echo "cargo-deb command missing" >&2
|
echo "cargo-deb command missing" >&2
|
||||||
|
@ -1,5 +1,13 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# This script builds a ripgrep release for the aarch64-apple-darwin target.
|
||||||
|
# At time of writing (2023-11-21), GitHub Actions does not free Apple silicon
|
||||||
|
# runners. Since I have somewhat recently acquired an M2 mac mini, I just use
|
||||||
|
# this script to build the release tarball and upload it with `gh`.
|
||||||
|
#
|
||||||
|
# Once GitHub Actions has proper support for Apple silicon, we should add it
|
||||||
|
# to our release workflow and drop this script.
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
version="$1"
|
version="$1"
|
||||||
@ -13,13 +21,14 @@ if ! grep -q "version = \"$version\"" Cargo.toml; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cargo build --release --features pcre2
|
target=aarch64-apple-darwin
|
||||||
BIN=target/release/rg
|
cargo build --release --features pcre2 --target $target
|
||||||
NAME=ripgrep-$version-aarch64-apple-darwin
|
BIN=target/$target/release/rg
|
||||||
|
NAME=ripgrep-$version-$target
|
||||||
ARCHIVE="deployment/m2/$NAME"
|
ARCHIVE="deployment/m2/$NAME"
|
||||||
|
|
||||||
mkdir -p "$ARCHIVE"/{complete,doc}
|
mkdir -p "$ARCHIVE"/{complete,doc}
|
||||||
cp target/release/rg "$ARCHIVE"/
|
cp "$BIN" "$ARCHIVE"/
|
||||||
strip "$ARCHIVE/rg"
|
strip "$ARCHIVE/rg"
|
||||||
cp {README.md,COPYING,UNLICENSE,LICENSE-MIT} "$ARCHIVE"/
|
cp {README.md,COPYING,UNLICENSE,LICENSE-MIT} "$ARCHIVE"/
|
||||||
cp {CHANGELOG.md,FAQ.md,GUIDE.md} "$ARCHIVE"/doc/
|
cp {CHANGELOG.md,FAQ.md,GUIDE.md} "$ARCHIVE"/doc/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user