request 8-byte buffer alignment on macos #146
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: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
name: Continuous integration | |
env: | |
CARGO_TERM_COLOR: always | |
CARGO_INCREMENTAL: 0 | |
MATMUL_NUM_THREADS: 4 | |
jobs: | |
tests: | |
runs-on: ${{ matrix.os }} | |
continue-on-error: ${{ matrix.experimental }} | |
strategy: | |
matrix: | |
include: | |
- rust: 1.41.1 # MSRV | |
experimental: false | |
os: ubuntu-latest | |
target: x86_64-unknown-linux-gnu | |
features: cgemm | |
- rust: stable | |
experimental: false | |
os: ubuntu-latest | |
target: x86_64-unknown-linux-gnu | |
features: threading cgemm | |
test_examples: yes_examples | |
test_benchmark: yes_bench | |
- rust: nightly | |
experimental: false | |
os: ubuntu-latest | |
target: x86_64-unknown-linux-gnu | |
mmtest_feature: avx | |
- rust: nightly | |
os: ubuntu-latest | |
target: x86_64-unknown-linux-gnu | |
features: threading cgemm | |
mmtest_feature: fma | |
experimental: false | |
- rust: nightly | |
os: ubuntu-latest | |
target: i686-unknown-linux-gnu | |
features: cgemm | |
install_deps: | | |
sudo apt-get update | |
sudo apt-get install -y gcc-multilib | |
experimental: false | |
- rust: stable | |
experimental: false | |
os: macos-latest | |
target: x86_64-apple-darwin | |
features: threading cgemm | |
test_examples: yes_examples | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: ${{ matrix.rust }} | |
target: ${{ matrix.target }} | |
override: true | |
- name: Install dependencies | |
if: matrix.install_deps | |
run: ${{ matrix.install_deps }} | |
- name: Tests | |
run: | | |
rustc -C target-cpu=native --print cfg | |
cargo build -v --features "${{ matrix.features }}" --target "${{ matrix.target }}" | |
cargo test -v --tests --lib --no-fail-fast --features "${{ matrix.features }}" --target "${{ matrix.target }}" | |
cargo test -v --tests --lib --release --no-fail-fast --features "${{ matrix.features }}" --target "${{ matrix.target }}" | |
- name: Test examples | |
if: matrix.test_examples | |
run: | | |
cargo test -v --examples --features "${{ matrix.features }}" --target "${{ matrix.target }}" | |
- name: Test benchmark | |
if: matrix.test_benchmark | |
run: | | |
cargo bench --no-run -v --features "${{ matrix.features }}" --target "${{ matrix.target }}" | |
python3 ./benches/benchloop.py -t f32 f64 c32 c64 --mc 32 -s 32 64 | tee bench.csv | |
cat bench.csv | |
- name: Test specific feature | |
if: matrix.mmtest_feature | |
env: | |
MMTEST_FEATURE: ${{ matrix.mmtest_feature }} | |
MMTEST_ENSUREFEATURE: 1 | |
run: | | |
cargo test -v --no-fail-fast | |
nostd-build: | |
runs-on: ubuntu-latest | |
continue-on-error: ${{ matrix.experimental }} | |
strategy: | |
matrix: | |
include: | |
- rust: 1.41.1 # MSRV | |
experimental: false | |
target: thumbv6m-none-eabi | |
- rust: stable | |
experimental: false | |
target: thumbv6m-none-eabi | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: ${{ matrix.rust }} | |
target: ${{ matrix.target }} | |
override: true | |
- name: Tests | |
run: | | |
cargo rustc "--target=${{ matrix.target }}" --manifest-path=ensure_no_std/Cargo.toml | |
cross_test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- rust: stable | |
target: aarch64-unknown-linux-gnu | |
features: constconf cgemm threading | |
- rust: 1.61.0 | |
target: aarch64-unknown-linux-gnu | |
features: cgemm | |
- rust: 1.41.1 # MSRV | |
target: aarch64-unknown-linux-gnu | |
features: cgemm | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: ${{ matrix.rust }} | |
target: ${{ matrix.target }} | |
override: true | |
- name: Cache cargo plugins | |
id: cache | |
uses: actions/cache@v1 | |
with: | |
path: ~/.cargo/bin/ | |
key: ${{ runner.os }}-cargo-plugins | |
- name: Install cross | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: cargo install cross | |
- name: Tests | |
run: cross test --target "${{ matrix.target }}" --features "${{ matrix.features }}" | |
env: | |
MMTEST_FAST_TEST: 1 | |
RUSTFLAGS: -Copt-level=2 | |
miri: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Miri | |
run: ci/miri.sh --features cgemm | |