Make browsing work again #123
This file contains 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: | |
pull_request: | |
push: | |
branches: | |
- master | |
env: | |
CARGO_INCREMENTAL: 0 | |
jobs: | |
build: | |
name: Build - ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macOS-latest] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Install toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
profile: minimal | |
override: true | |
components: clippy, rustfmt | |
- name: Install libsqlite3-dev | |
if: matrix.os == 'ubuntu-latest' | |
run: sudo apt-get install libsqlite3-dev | |
- name: Cache dependencies | |
uses: Swatinem/rust-cache@v1 | |
- name: Fetch | |
run: cargo fetch | |
- name: Format | |
run: cargo fmt -- --check | |
- name: Build | |
run: cargo build --features bundled-sqlite | |
- name: Clippy | |
run: cargo clippy --features bundled-sqlite -- -D warnings | |
- name: Build tests | |
run: cargo test --features bundled-sqlite --no-run | |
- name: Test | |
run: cargo test --features bundled-sqlite |