chore: release v1.1.2 #422
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: Check | |
| on: [push, pull_request] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| check: | |
| name: Check | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout sources | |
| uses: actions/checkout@v4 | |
| - name: Install stable toolchain | |
| uses: actions-rs/toolchain@v1 | |
| with: | |
| profile: minimal | |
| toolchain: stable | |
| override: true | |
| - name: Cache dependencies | |
| uses: Swatinem/rust-cache@v1 | |
| - name: Run cargo check | |
| uses: actions-rs/cargo@v1 | |
| with: | |
| command: check | |
| - name: Run cargo build | |
| uses: actions-rs/cargo@v1 | |
| with: | |
| command: build | |
| - name: Append usage to the README.md | |
| shell: bash | |
| run: .github/scripts/update-docs.sh | |
| - name: Verify no unstaged changes | |
| shell: bash | |
| run: | | |
| if [[ "$(git status --porcelain)" != "" ]]; then | |
| echo ---------------------------------------- | |
| echo git status | |
| echo ---------------------------------------- | |
| git status | |
| echo ---------------------------------------- | |
| echo git diff | |
| echo ---------------------------------------- | |
| git diff | |
| echo ---------------------------------------- | |
| echo Troubleshooting | |
| echo ---------------------------------------- | |
| echo "::error::Unstaged changes detected. You probably need to update the usage in the README.md. Use `.github/scripts/update-docs`." | |
| exit 1 | |
| fi | |
| lints: | |
| name: Lints | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout sources | |
| uses: actions/checkout@v4 | |
| - name: Install stable toolchain | |
| uses: actions-rs/toolchain@v1 | |
| with: | |
| profile: minimal | |
| toolchain: stable | |
| override: true | |
| components: rustfmt, clippy | |
| - name: Cache dependencies | |
| uses: Swatinem/rust-cache@v1 | |
| - name: Run cargo fmt | |
| uses: actions-rs/cargo@v1 | |
| with: | |
| command: fmt | |
| args: --all -- --check | |
| - name: Run cargo clippy | |
| uses: actions-rs/cargo@v1 | |
| with: | |
| command: clippy | |
| args: -- -D warnings | |
| test: | |
| name: Test Suite | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-24.04, macOS-latest] | |
| steps: | |
| - name: Checkout sources | |
| uses: actions/checkout@v2 | |
| - name: Install stable toolchain | |
| uses: actions-rs/toolchain@v1 | |
| with: | |
| profile: minimal | |
| toolchain: stable | |
| override: true | |
| - name: Cache dependencies | |
| uses: Swatinem/rust-cache@v1 | |
| - name: Run tests | |
| run: cargo test --verbose |