Skip to content

Update regex-syntax requirement from 0.6.26 to 0.8.4 #140

Update regex-syntax requirement from 0.6.26 to 0.8.4

Update regex-syntax requirement from 0.6.26 to 0.8.4 #140

Workflow file for this run

on:
push:
pull_request:
jobs:
rust:
name: Lint Rust code
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Cargo fmt
run: cargo fmt --all -- --check
- name: Cargo clippy
run: cargo clippy --workspace --all-targets -- -D warnings
- name: Cargo test
run: cargo test --workspace
- name: Cargo doc
env:
RUSTDOCFLAGS: -Dwarnings
run: cargo doc --all --all-features
rust-msrv:
name: Build-test MSRV (1.74) with minal crate dependencies
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- name: Generate minimal-version dependencies
run: cargo -Zminimal-versions generate-lockfile
- uses: dtolnay/rust-toolchain@1.74.0
- name: Upgrade to regex@1.5.1
# Workaround for:
# https://github.com/rust-lang/regex/issues/931
# https://github.com/rust-lang/rust-bindgen/pull/2714
run: cargo update -p regex --precise 1.5.1
- name: Cargo check
run: cargo check --workspace --all-targets
generate:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Checkout submodule
# Manually update submodules with --checkout because they are configured with update=none and will be skipped otherwise
run: git submodule update --recursive --init --force --checkout
- name: Run generator
run: cargo r -p api_gen
- name: Normalize line endings
run: |
git add --renormalize -u
git reset
- name: Diff autogen result
shell: bash
run: test -z "$(git status --porcelain)" || (echo "::error::Generated files are different, please regenerate with cargo run -p api_gen!"; git diff; false)