test 2 #88
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
name: Cargo Build & Test | |
on: [push, pull_request] | |
jobs: | |
test: | |
name: Test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
build: [stable, beta, nightly, linux32, macos, aarch64-ios, win64, win64-nightly] | |
include: | |
- build: stable | |
os: ubuntu-latest | |
rust: stable | |
target: x86_64-unknown-linux-gnu | |
- build: beta | |
os: ubuntu-latest | |
rust: beta | |
target: x86_64-unknown-linux-gnu | |
- build: nightly | |
os: ubuntu-latest | |
rust: nightly | |
target: x86_64-unknown-linux-gnu | |
- build: linux32 | |
os: ubuntu-latest | |
rust: stable | |
target: i686-unknown-linux-gnu | |
- build: macos | |
os: macos-latest | |
rust: stable | |
target: x86_64-apple-darwin | |
- build: aarch64-ios | |
os: macos-latest | |
rust: stable | |
target: aarch64-apple-ios | |
- build: windows-aarch64 | |
os: windows-latest | |
rust: stable | |
target: aarch64-pc-windows-msvc | |
- build: win64 | |
os: windows-latest | |
rust: stable | |
target: x86_64-pc-windows-msvc | |
- build: win64-nightly | |
os: windows-latest | |
rust: nightly | |
target: x86_64-pc-windows-msvc | |
steps: | |
- uses: actions/checkout@master | |
- run: git submodule init | |
- run: git submodule update | |
- name: Install Ubuntu packages | |
if: startsWith(matrix.os, 'ubuntu') | |
run: | | |
sudo apt-get update | |
sudo apt-get -y install libsundials-dev | |
- name: Set up vcpkg on Windows | |
if: startsWith(matrix.os, 'windows') | |
run: | | |
git clone https://github.com/microsoft/vcpkg | |
& .\vcpkg\bootstrap-vcpkg.bat | |
& .\vcpkg\vcpkg install sundials:x64-windows | |
- name: Install MacOS packages (brew) | |
if: startsWith(matrix.os, 'macos') | |
run: brew install sundials | |
- name: Install Rust (rustup) | |
run: rustup update ${{ matrix.rust }} --no-self-update && rustup default ${{ matrix.rust }} | |
shell: bash | |
- run: rustup target add ${{ matrix.target }} | |
- run: cargo build --verbose | |
- run: cargo test tests --verbose | |
- run: cargo run --example basic | |
- run: cargo run --example speed --release | |
- run: cargo run --example speed --release --features nightly | |
if: startsWith(matrix.rust, 'nightly') |