Refactoring fmt traits #53
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: Rust | |
env: | |
min_rust_version: "1.64.0" | |
on: | |
push: | |
paths-ignore: | |
- 'README.md' | |
- 'LICENSE' | |
- '.gitignore' | |
branches: | |
- 'master' | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
paths-ignore: | |
- 'README.md' | |
- 'LICENSE' | |
- '.gitignore' | |
jobs: | |
min-rust-check: | |
if: github.event.pull_request.draft == false | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust Unix | |
run: | | |
if rustup --version >/dev/null 2>&1; then | |
rustup install ${{ env.min_rust_version }} | |
rustup default ${{ env.min_rust_version }} | |
else | |
curl https://sh.rustup.rs -sSf | sh -s -- -y --profile minimal --default-toolchain ${{ env.min_rust_version }} | |
echo ::add-path::$HOME/.cargo/bin | |
fi | |
- name: Rust version | |
run: | | |
cargo --version | |
rustc --version | |
- name: Check | |
run: | | |
cargo check --features serde,ufmt-write | |
check: | |
if: github.event.pull_request.draft == false | |
uses: DoumanAsh/douman-ci/.github/workflows/rust.yml@master | |
with: | |
cargo-features: "serde,ufmt-write" | |
cargo-no-features: true | |
valgrind: false | |
miri: true | |
miri_flags: "-Zmiri-strict-provenance" |