Merge pull request #88 from wx-csy/patch-1 #134
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 | |
on: [push, pull_request] | |
env: | |
CARGO_INCREMENTAL: 0 | |
CARGO_NET_RETRY: 10 | |
RUSTUP_MAX_RETRIES: 10 | |
CARGO_TERM_COLOR: always | |
RUST_BACKTRACE: full | |
RUSTFLAGS: "-D warnings" | |
# Disable debuginfo for faster compile | |
CARGO_PROFILE_DEV_DEBUG: 0 | |
CARGO_PROFILE_TEST_DEBUG: 0 | |
CARGO_PROFILE_BENCH_DEBUG: 0 | |
CI: 1 | |
CARGO_MAKE_CI: 1 | |
CARGO_MAKE_RUN_CHECK_FORMAT: 1 | |
CARGO_MAKE_RUN_CLIPPY: 1 | |
CARGO_MAKE_BUILD_BENCH: 1 | |
jobs: | |
rust_x86_64: | |
name: Rust x86-64 | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
rust: | |
- stable | |
- beta | |
- nightly | |
- 1.61.0 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: ${{ matrix.rust }} | |
override: true | |
components: clippy,rustfmt | |
- name: Cache Dependencies | |
uses: Swatinem/rust-cache@v2 | |
- name: Install Cargo Make | |
uses: davidB/rust-cargo-make@v1 | |
- name: cargo-make ci-flow | |
uses: actions-rs/cargo@v1 | |
with: | |
command: make | |
args: ci-flow | |
miri: | |
name: Miri | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: nightly | |
override: true | |
components: miri | |
- name: Run Miri | |
uses: actions-rs/cargo@v1 | |
with: | |
command: miri | |
args: test | |
env: | |
MIRIFLAGS: -Zmiri-strict-provenance |