Merge pull request #252 from bluescreen303/lifetime-strictness #19
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: Build and check | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- '**.rs' | |
- '**/Cargo.*' | |
pull_request: | |
branches: [ main ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache/restore@v4 | |
with: | |
path: | | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
key: cargo-${{ hashFiles('**/Cargo.lock') }} | |
- name: Build | |
run: cargo build --verbose | |
- name: Check jaq-core without default features | |
working-directory: jaq-core | |
run: cargo check --no-default-features | |
- name: Check jaq-std without default features | |
working-directory: jaq-std | |
run: cargo check --no-default-features | |
- name: Check jaq-json without default features | |
working-directory: jaq-json | |
run: cargo check --no-default-features | |
- name: Clippy | |
run: cargo clippy -- -Dwarnings |