This repository has been archived by the owner on Jul 2, 2024. It is now read-only.
Update rust.yml #18
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: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
CARGO_TERM_COLOR: always | |
RUST_BACKTRACE: 1 | |
jobs: | |
clippy: | |
name: Clippy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Rust | |
uses: dtolnay/rust-toolchain@stable | |
- name: Clippy | |
run: cargo clippy | |
test: | |
name: Test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
build: [linux-x86_64, windows-x86_64, macos-x86_64, macos-aarch64] | |
include: | |
- build: linux-x86_64 | |
os: ubuntu-latest | |
- build: windows-x86_64 | |
os: windows-latest | |
- build: macos-x86_64 | |
os: macos-13 | |
- build: macos-aarch64 | |
os: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Rust | |
uses: dtolnay/rust-toolchain@stable | |
- name: Test | |
run: cargo test | |
- name: Test (no-std) | |
run: cargo test --no-default-features --features alloc |