Upgrade: Bump serde from 1.0.171 to 1.0.183 #155
Workflow file for this run
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: 解法验证 | |
on: [pull_request, push] | |
jobs: | |
build_and_test: | |
name: Rust toolchain CI | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- uses: actions/cache@v3 | |
id: "cache-cargo" | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
- if: ${{ steps.cache-cargo.outputs.cache-hit != 'true' }} | |
run: "cargo check" | |
- name: "力扣解法的单元测试" | |
run: "cargo test --lib problems_cn:: --release" | |
- name: "力扣解法的整合测试" | |
run: "cargo test --test solutions_cn --release" |