directx_math 0.1.2

A rust translation of DirectXMath, a SIMD linear algebra library for use in games and graphics apps.
Documentation
name: tests
on:
  schedule:
    - cron: "0 0 * * *"
  pull_request:
  push:

jobs:
  no-intrinsics:
    name: No Intrinsics
    runs-on: ubuntu-latest
    strategy:
      matrix:
        toolchain:
          - stable
          - nightly
    steps:
      - uses: actions/checkout@v2
      - name: Install rust
        uses: actions-rs/toolchain@v1
        id: rust
        with:
          toolchain: ${{ matrix.toolchain }}
          override: true
          profile: minimal
      - name: Build and test
        uses: actions-rs/cargo@v1
        with:
          command: test
          args: --features=no_intrinsics
      - name: Build and test (with specialization)
        uses: actions-rs/cargo@v1
        with:
          command: test
          args: --features=no_intrinsics,specialization

  intrinsics:
    name: Intrinsics
    runs-on: ubuntu-latest
    strategy:
      matrix:
        toolchain:
          - stable
          - nightly
        target_feature:
          - ""
          - "+sse3"
          - "+sse3,+sse4.1"
          - "+sse3,+sse4.1,+avx"
          - "+sse3,+sse4.1,+avx,+fma"
          - "+sse3,+sse4.1,+avx,+fma,+avx2"
    env:
      RUSTFLAGS: "-C target-feature=${{ matrix.target_feature }}"
    steps:
      - uses: actions/checkout@v2
      - name: Install rust
        uses: actions-rs/toolchain@v1
        id: rust
        with:
          toolchain: ${{ matrix.toolchain }}
          override: true
          profile: minimal
          components: clippy
      - name: Run clippy
        uses: actions-rs/cargo@v1
        with:
          command: clippy
      - name: Build and test
        uses: actions-rs/cargo@v1
        with:
          command: test
      - name: Build and test (with specialization)
        uses: actions-rs/cargo@v1
        with:
          command: test
          args: --features=specialization