Update Rust crate serde_json to 1.0.135 #240
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
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
name: CI | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
env: | |
RUSTFLAGS: -D warnings | |
steps: | |
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: rustfmt, clippy | |
- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3 | |
- name: Lint (clippy) | |
run: cargo clippy --all-features --all-targets | |
- name: Lint (rustfmt) | |
run: cargo xfmt --check | |
- name: Run rustdoc | |
env: | |
RUSTC_BOOTSTRAP: 1 # for feature(doc_cfg) | |
RUSTDOCFLAGS: -Dwarnings --cfg doc_cfg | |
run: cargo doc --all-features --workspace | |
- name: Check for differences | |
run: git diff --exit-code | |
build-and-test: | |
name: Build and test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
rust-version: ["1.61", stable] | |
fail-fast: false | |
env: | |
RUSTFLAGS: -D warnings | |
steps: | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.rust-version }} | |
- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2 | |
- uses: taiki-e/install-action@cargo-hack | |
- uses: taiki-e/install-action@nextest | |
- name: Build | |
run: ./scripts/commands.sh build | |
- name: Test | |
run: ./scripts/commands.sh nextest | |
- name: Run extended tests (only on stable) | |
if: matrix.rust-version == 'stable' | |
run: ./scripts/commands.sh nextest-all-features | |
- name: Run doctests | |
if: matrix.rust-version == 'stable' | |
run: ./scripts/commands.sh doctest | |
no-std: | |
name: Build no_std for ${{ matrix.target }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
target: | |
- thumbv7m-none-eabi | |
rust-version: [stable] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.rust-version }} | |
targets: ${{ matrix.target }} | |
- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2 | |
- uses: taiki-e/install-action@cargo-hack | |
- run: ./scripts/commands.sh build-no-std --target ${{ matrix.target }} |