docs: rewrite README for v0.6.0 #32
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Host check (library crate only) | |
| run: cargo check -p resetprop | |
| - name: Tests | |
| run: cargo test -p resetprop | |
| gates: | |
| name: Casting wall (fmt, clippy, supply, comment-hygiene) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Resolve pinned toolchain (rust-toolchain.toml) | |
| run: rustup show | |
| - name: Format | |
| run: cargo fmt --all --check | |
| - name: Clippy (workspace, all targets and features) | |
| run: cargo clippy --all-targets --all-features -- -D warnings | |
| - name: Install cargo-deny | |
| uses: taiki-e/install-action@v2 | |
| with: | |
| tool: cargo-deny | |
| - name: Supply line (offline, deterministic) | |
| run: cargo deny check licenses bans sources | |
| - name: Comment hygiene | |
| run: python3 scripts/comment-hygiene.py | |
| cross-compile: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| target: [aarch64-linux-android, armv7-linux-androideabi] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Pinned toolchain + Android target | |
| run: | | |
| rustup show | |
| rustup target add ${{ matrix.target }} | |
| - name: Install NDK | |
| uses: nttld/setup-ndk@v1 | |
| id: ndk | |
| with: | |
| ndk-version: r26d | |
| - name: Configure NDK toolchain | |
| run: | | |
| NDK=${{ steps.ndk.outputs.ndk-path }} | |
| BIN="$NDK/toolchains/llvm/prebuilt/linux-x86_64/bin" | |
| echo "$BIN" >> $GITHUB_PATH | |
| - name: Build ${{ matrix.target }} | |
| run: cargo build --release --target ${{ matrix.target }} |