ci(release): extract notes from changelog via awk #25
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 | |
| cross-compile: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| target: [aarch64-linux-android, armv7-linux-androideabi] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: ${{ 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 }} | |
| clippy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy | |
| - name: Clippy (library) | |
| run: cargo clippy -p resetprop -- -D warnings |