Skip to content

Preserve search state on refresh (#161) #483

Preserve search state on refresh (#161)

Preserve search state on refresh (#161) #483

Workflow file for this run

name: Build
on:
push:
branches:
- '*'
pull_request:
branches:
- master
env:
CARGO_TERM_COLOR: always
jobs:
prepare:
runs-on: ubuntu-latest
outputs:
msrv: ${{ steps.get-msrv.outputs.msrv }}
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Get MSRV
id: get-msrv
run: |
MSRV=$(grep '^rust-version' Cargo.toml | cut -d '"' -f 2)
echo "msrv=$MSRV" >> $GITHUB_OUTPUT
lint:
needs: prepare
strategy:
matrix:
versions:
- stable
- ${{ needs.prepare.outputs.msrv }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup Rust
uses: dtolnay/rust-toolchain@3c5f7ea28cd621ae0bf5283f0e981fb97b8a7af9 # latest commit as of 2026-03-28
with:
toolchain: ${{ matrix.versions }}
components: rustfmt, clippy
- name: Cache
uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
- name: Version
run: |
rustc --version
cargo --version
cargo fmt -- --version
cargo clippy -- --version
- name: Format
run: cargo fmt --all -- --check
- name: Build
run: cargo build --verbose
- name: Lint
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Run tests
run: cargo test --verbose
build:
strategy:
matrix:
# x86_64-unknown-linux-gnu build is included in the lint job, so skip it here
targets:
- target: x86_64-unknown-linux-musl
os: ubuntu-latest
- target: aarch64-unknown-linux-gnu
os: ubuntu-latest
- target: aarch64-unknown-linux-musl
os: ubuntu-latest
- target: x86_64-apple-darwin
os: macos-latest
- target: aarch64-apple-darwin
os: macos-latest
runs-on: ${{ matrix.targets.os }}
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup
run: rustup target add ${{ matrix.targets.target }}
- name: Build
uses: houseabsolute/actions-rust-cross@a8cc74d61047fa553b4e908b4b10e70029f00ca6 # v1.0.6
with:
command: build
target: ${{ matrix.targets.target }}