Inline Index and IndexMut implementations #80
Workflow file for this run
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
on: [pull_request] | |
name: Tests | |
jobs: | |
checks: | |
name: Code Checks (formatting, clippy) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
name: Initialize Cargo x86 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
components: rustfmt, clippy | |
- uses: actions-rs/toolchain@v1 | |
name: Initialize Cargo aarch64 | |
with: | |
profile: minimal | |
toolchain: stable | |
target: aarch64-unknown-linux-gnu | |
override: true | |
components: rustfmt, clippy | |
- uses: Swatinem/rust-cache@v2 | |
name: Cargo Cache | |
- uses: actions-rs/cargo@v1 | |
name: Check code formatting | |
with: | |
command: fmt | |
args: --all -- --check | |
- uses: actions-rs/cargo@v1 | |
name: Clippy check (x86) | |
with: | |
command: clippy | |
args: --all --all-targets -- --deny "warnings" | |
- uses: actions-rs/cargo@v1 | |
name: Clippy check (arm64) | |
with: | |
command: clippy | |
args: --all --all-targets --target aarch64-unknown-linux-gnu -- --deny "warnings" | |
x86_tests: | |
name: x86 Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
name: Initialize Cargo | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
components: rustfmt, clippy | |
- uses: Swatinem/rust-cache@v2 | |
name: Cargo Cache | |
# Ensure that everything happens safely (with runtime checks) | |
- uses: actions-rs/cargo@v1 | |
name: Run tests (debug) | |
with: | |
command: test | |
# Ensure that no behavior gets optimized out | |
- uses: actions-rs/cargo@v1 | |
name: Run tests (release) | |
with: | |
command: test | |
args: --release | |
arm_tests: | |
name: Arm Neon Tests | |
runs-on: ubuntu-latest | |
env: | |
QEMU_LD_PREFIX: /usr/aarch64-linux-gnu | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: sudo apt-get install -y gcc-aarch64-linux-gnu qemu-user | |
- uses: actions-rs/toolchain@v1 | |
name: Initialize Cargo | |
with: | |
profile: minimal | |
toolchain: stable | |
target: aarch64-unknown-linux-gnu | |
override: true | |
components: rustfmt, clippy | |
- uses: Swatinem/rust-cache@v2 | |
name: Cargo Cache | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
with: | |
platforms: aarch64 | |
- uses: actions-rs/cargo@v1 | |
name: Run tests (release) | |
with: | |
command: test | |
args: --release --target aarch64-unknown-linux-gnu | |
wasm_tests: | |
name: WebAssembly Tests | |
runs-on: ubuntu-latest | |
env: | |
WASMTIME_BACKTRACE_DETAILS: 1 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup `wasmtime` | |
uses: bytecodealliance/actions/wasmtime/setup@v1 | |
- uses: actions-rs/toolchain@v1 | |
name: Initialize Cargo | |
with: | |
profile: minimal | |
toolchain: stable | |
target: wasm32-wasip1 | |
override: true | |
components: rustfmt, clippy | |
- uses: Swatinem/rust-cache@v2 | |
name: Cargo Cache | |
- uses: actions-rs/cargo@v1 | |
name: Run tests (release) | |
with: | |
command: test | |
args: --release --target wasm32-wasip1 |