chore(deps): bump actions/cache from 3 to 4 (#20) #109
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 | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: Build | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: [ubuntu-latest, macos-latest, windows-latest] | |
toolchain: [stable] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- name: Checkout Sources | |
uses: actions/checkout@v4 | |
- name: Cache Dependencies & Build Outputs | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cargo | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
- name: Install Rust Toolchain | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.toolchain }} | |
components: rustfmt, clippy | |
- name: Check Code Format | |
run: cargo fmt --all -- --check | |
shell: bash | |
- name: Code Lint | |
run: cargo clippy --all-targets --workspace -- -D warnings | |
shell: bash | |
- name: Test | |
run: cargo test --all-targets --workspace | |
shell: bash | |
- name: Test no-cid-as-bytes feature | |
run: cargo test --all-targets --workspace --features no-cid-as-bytes | |
shell: bash |