Refactor convert, macros, fmt. #170
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: Build | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
# Nightly toolchain must ship the `rust-std` component for | |
# `i686-unknown-linux-gnu` and `mips64-unknown-linux-gnuabi64`. | |
# In practice, `rust-std` almost always ships for | |
# `i686-unknown-linux-gnu` so we just need to check this page for a | |
# compatible nightly: | |
# https://rust-lang.github.io/rustup-components-history/mips64-unknown-linux-gnuabi64.html | |
toolchain: nightly-2023-04-25 | |
override: true | |
components: rustfmt, miri | |
- name: Lint | |
run: cargo fmt --check | |
- name: Check (no-default-features) | |
run: cargo check --no-default-features | |
- name: Test | |
run: cargo test | |
- name: Test (all-features) | |
run: cargo test --all-features | |
- name: Test (no_std) | |
run: cargo test --no-default-features --features derive,serde,glam,arrayvec | |
- name: Install i686 and GCC multilib | |
run: rustup target add i686-unknown-linux-gnu && sudo apt update && sudo apt install -y gcc-multilib | |
- name: Test (32-bit all-features) | |
run: cargo test --target i686-unknown-linux-gnu --all-features | |
- name: Setup Miri | |
run: cargo miri setup | |
- name: Test (miri all-features) | |
run: cargo miri test --all-features | |
- name: Setup Miri (big-endian) | |
run: rustup target add mips64-unknown-linux-gnuabi64 && cargo miri setup --target mips64-unknown-linux-gnuabi64 | |
- name: Test (miri big-endian) | |
run: cargo miri test --target mips64-unknown-linux-gnuabi64 | |
fuzz: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
override: true | |
- name: Install cargo-fuzz | |
uses: baptiste0928/cargo-install@v3 | |
with: | |
crate: cargo-fuzz | |
locked: false | |
- name: Fuzz | |
run: RUST_BACKTRACE=1 cargo fuzz run fuzz -- -max_total_time=900 |