Skip to content

add docs/ with architecture slides and future index format plan #2

add docs/ with architecture slides and future index format plan

add docs/ with architecture slides and future index format plan #2

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
build:
name: Build ${{ matrix.target }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- target: aarch64-apple-darwin
os: macos-14
- target: x86_64-unknown-linux-musl
os: ubuntu-latest
- target: aarch64-unknown-linux-musl
os: ubuntu-latest
cross: true
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- name: Install musl tools (Linux x86_64)
if: matrix.target == 'x86_64-unknown-linux-musl'
run: sudo apt-get install -y musl-tools
- name: Install cross (Linux aarch64)
if: matrix.cross
run: cargo install cross --git https://github.com/cross-rs/cross
- name: Build (native)
if: '!matrix.cross'
run: cargo build --release --target ${{ matrix.target }}
- name: Build (cross)
if: matrix.cross
run: cross build --release --target ${{ matrix.target }}
- name: Package
shell: bash
run: |
ASSET="smartgrep-${{ matrix.target }}.tar.gz"
cp target/${{ matrix.target }}/release/smartgrep smartgrep
tar -czf "$ASSET" smartgrep
echo "ASSET=$ASSET" >> $GITHUB_ENV
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.target }}
path: ${{ env.ASSET }}
release:
name: Create release
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: artifacts
merge-multiple: true
- name: Create GitHub release
uses: softprops/action-gh-release@v2
with:
files: artifacts/*
body: |
## Installation
```sh
curl -fsSL https://raw.githubusercontent.com/rohitkg98/smartgrep/main/install.sh | sh
```
Or download a binary directly for your platform from the assets below.
## Update
```sh
smartgrep update
```