add mouse support #183
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: Lint and Test | |
| on: | |
| push: | |
| branches: | |
| - "main" | |
| pull_request: | |
| permissions: read-all | |
| env: | |
| CRATE_NAME: coman | |
| GITHUB_TOKEN: ${{ github.token }} | |
| RUST_BACKTRACE: 1 | |
| RUSTFLAGS: "-Dwarnings" | |
| jobs: | |
| lint-and-test: | |
| name: Run linters and tests | |
| strategy: | |
| matrix: | |
| platform: | |
| - os_name: Linux-x86_64 | |
| os: ubuntu-latest | |
| target: x86_64-unknown-linux-musl | |
| bin: coman | |
| name: coman-Linux-x86_64-musl.tar.gz | |
| cargo_command: cargo | |
| - os_name: Windows-aarch64 | |
| os: windows-latest | |
| target: aarch64-pc-windows-msvc | |
| bin: coman.exe | |
| name: coman-Windows-aarch64.zip | |
| cargo_command: cargo | |
| # enable this if there's ever a case where something works on linux but not on macos | |
| # - os_name: macOS-x86_64 | |
| # os: macOS-latest | |
| # target: x86_64-apple-darwin | |
| # bin: coman | |
| # name: coman-Darwin-x86_64.tar.gz | |
| # cargo_command: cargo | |
| runs-on: ${{ matrix.platform.os }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Install toolchain | |
| # nightly needed for cargo fmt | |
| uses: dtolnay/rust-toolchain@nightly | |
| with: | |
| targets: ${{ matrix.platform.target }} | |
| components: clippy rustfmt | |
| - name: Rust cache | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| prefix-key: "v0-rust" | |
| cache-workspace-crates: "true" | |
| - name: install tooling | |
| run: cargo install oas3-gen@0.21.1 | |
| - name: Build | |
| run: cargo build --verbose | |
| - name: Check formatting | |
| if: contains(matrix.platform.os, 'ubuntu') | |
| run: cargo +nightly fmt --check | |
| - name: Lint | |
| if: contains(matrix.platform.os, 'ubuntu') | |
| run: cargo clippy --all-targets --all-features -p coman | |
| - name: Test | |
| run: cargo test --verbose |