Autocxx #2
This file contains hidden or 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: | |
name: CI | |
jobs: | |
build-linux: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust: | |
- stable | |
- nightly | |
steps: | |
- run: sudo apt-get update -y | |
- run: sudo apt-get install -y libmfem-dev | |
- uses: actions/checkout@v2 | |
- run: | | |
git submodule init | |
git submodule update | |
- run: | | |
rustup update ${{ matrix.rust }} | |
rustup default ${{ matrix.rust }} | |
rustup component add clippy | |
- run: cargo clippy -p mfem-sys -- -D warnings | |
- run: cargo build -p mfem-sys | |
- run: cargo run -p mfem-sys --example ex1 -- --mesh data/square.mesh | |
build-osx: | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
rust: | |
- stable | |
- nightly | |
steps: | |
- run: brew update | |
- run: brew install mfem | |
- uses: actions/checkout@v2 | |
- run: | | |
rustup update ${{ matrix.rust }} | |
rustup default ${{ matrix.rust }} | |
- run: cargo build -p mfem-sys | |
- run: cargo run -p mfem-sys --example ex1 -- --mesh data/square.mesh | |
build-windows: | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
rust: | |
- stable | |
- nightly | |
steps: | |
- uses: actions/checkout@v2 | |
- run: | | |
rustup update ${{ matrix.rust }} | |
rustup default ${{ matrix.rust }} | |
- run: cargo build -p mfem-sys | |
- run: cargo run -p mfem-sys --example ex1 -- --mesh data/square.mesh | |
fmt: | |
name: Rust fmt | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: | | |
rustup update | |
rustup default stable | |
rustup component add rustfmt | |
- run: cargo fmt --all -- --check |