Improve double-tap zoom #93
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, pull_request] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install \ | |
| libasound2-dev \ | |
| libboost-dev \ | |
| libgtk-4-dev \ | |
| libkyotocabinet-dev \ | |
| libmarisa-dev sqlite3 \ | |
| libpango1.0-dev \ | |
| libprotobuf-dev \ | |
| libpulse-dev \ | |
| protobuf-compiler | |
| - uses: actions/checkout@v2 | |
| with: | |
| submodules: 'recursive' | |
| - name: Stable | |
| run: cargo test | |
| - name: Stable no-features | |
| run: cargo build --no-default-features | |
| - name: Oldstable | |
| run: | | |
| oldstable=$(cat Cargo.toml | grep "rust-version =" | sed 's/.*"\(.*\)".*/\1/') | |
| rustup toolchain install --profile minimal $oldstable | |
| rustup default $oldstable | |
| cargo test | |
| - name: Clippy | |
| run: | | |
| rustup component add clippy | |
| cargo clippy --all-targets --all-features -- -D warnings | |
| - name: Rustfmt | |
| run: | | |
| rustup toolchain install nightly -c rustfmt | |
| cargo +nightly fmt -- --check |