Skip to content
Myr

release: build aarch64 artifacts for macos on GitHub Actions

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

GitHub now supports this natively, so there's no need for me to do it any more. Fixes #3155

authored by Andrew Gallant · committed by Andrew Gallant · parent 8b5d3d1 · Browse files · 4 files+6 added−45 removed
This commit

State

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

Diff stats

4 files+6 added−45 removed

  • other:+6 added−45 removed

4 files+6 added−45 removed

modified:.github/workflows/release.yml+4 added
112 unmodified lines
113 - build: macos114 os: macos-latest115 rust: nightly116 target: x86_64-apple-darwin117 - build: macos118 os: macos-latest119 rust: nightly120 target: aarch64-apple-darwin121 - build: win-msvc122 os: windows-latest123 rust: nightly124 target: x86_64-pc-windows-msvc
255 unmodified lines
deleted:ci/build-and-publish-m2-43 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" ]; then15 echo "missing version" >&216 echo "Usage: "$(basename "$0")" <version>" >&217 exit 118fi19if ! grep -q "version = \"$version\"" Cargo.toml; then20 echo "version does not match Cargo.toml" >&221 exit 122fi2324target=aarch64-apple-darwin25cargo build --release --features pcre2 --target $target26BIN=target/$target/release/rg27NAME=ripgrep-$version-$target28ARCHIVE="deployment/m2/$NAME"2930mkdir -p "$ARCHIVE"/{complete,doc}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"36"$BIN" --generate complete-fish > "$ARCHIVE/complete/rg.fish"37"$BIN" --generate complete-powershell > "$ARCHIVE/complete/_rg.ps1"38"$BIN" --generate complete-zsh > "$ARCHIVE/complete/_rg"39"$BIN" --generate man > "$ARCHIVE/doc/rg.1"4041tar c -C deployment/m2 -z -f "$ARCHIVE.tar.gz" "$NAME"42shasum -a 256 "$ARCHIVE.tar.gz" > "$ARCHIVE.tar.gz.sha256"43gh release upload "$version" "$ARCHIVE.tar.gz" "$ARCHIVE.tar.gz.sha256"
modified:CHANGELOG.md+2 added
31 unmodified lines
32* [BUG #3108](https://github.com/BurntSushi/ripgrep/issues/3108):33 Fix a bug where `-q --files-without-match` inverted the exit code.34* [BUG #3140](https://github.com/BurntSushi/ripgrep/issues/3140):35 Ensure hyphens in flag names are escaped in the roff text for the man page.36* [BUG #3155](https://github.com/BurntSushi/ripgrep/issues/3155):37 Statically compile PCRE2 into macOS release artifacts on `aarch64`.3839Feature enhancements:4041* Many enhancements to the default set of file types available for filtering.
1733 unmodified lines
modified:RELEASE-CHECKLIST.md-2 removed