Skip to content

Update README.md

Update README.md #103

name: 👾 rust tests
on:
push:
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
jobs:
cargo-check:
runs-on: ${{ matrix.triple.os }}
strategy:
matrix:
triple:
- {
os: "ubuntu-latest",
target: "x86_64-unknown-linux-gnu",
cross: false,
}
- {
os: "macOS-latest",
target: "x86_64-apple-darwin",
cross: false,
}
# macOS ARM
- {
os: "macOS-latest",
target: "aarch64-apple-darwin",
cross: true,
}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
target: ${{ matrix.triple.target }}
- name: Cache cargo
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-${{ matrix.triple.target }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Cargo check
uses: actions-rs/cargo@v1
with:
command: check
args: --all-targets --verbose --target=${{ matrix.triple.target }}
use-cross: ${{ matrix.triple.cross }}