name: Tests
on: [push]
jobs:
Test_Linux:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-16.04, ubuntu-18.04]
features: ["", "--features=generate_bindings", "--features=profiling_enabled", "--features=profiling_enabled,generate_bindings"]
steps:
- uses: actions/checkout@v1
- name: Checkout
run: git submodule update --init
- name: Build
run: cargo build --verbose ${{ matrix.features }}
- name: Run tests
run: cargo test --verbose
Test_MacOS:
runs-on: macOS-latest
strategy:
matrix:
features: ["", "--features=generate_bindings", "--features=profiling_enabled", "--features=profiling_enabled,generate_bindings"]
steps:
- uses: actions/checkout@v1
- name: checkout
run: git submodule update --init
- name: install_dependencies
run: |
brew install rustup
rustup-init -y --default-toolchain stable
- name: Build
run: |
export PATH="$HOME/.cargo/bin:$PATH"
cargo build --verbose ${{ matrix.features }}
- name: Test
run: |
export PATH="$HOME/.cargo/bin:$PATH"
cargo test
Test_Windows:
runs-on: windows-2016
strategy:
matrix:
features: ["", "--features=profiling_enabled"]
steps:
- uses: actions/checkout@v1
- name: Checkout
run: git submodule update --init
- name: Build
run: cargo build --verbose ${{ matrix.features }}
- name: Run tests
run: cargo test --verbose