This repository was archived by the owner on Jul 2, 2026. It is now read-only.
Repository navigation
Welcome to Maintenance #191
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
| name: CI | |
| on: [push, pull_request] | |
| jobs: | |
| build_and_test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| toolchain: | |
| - x86_64-pc-windows-msvc | |
| - x86_64-pc-windows-gnu | |
| - i686-pc-windows-msvc | |
| - x86_64-unknown-linux-gnu | |
| - x86_64-apple-darwin | |
| version: | |
| - stable | |
| - nightly | |
| include: | |
| - toolchain: x86_64-pc-windows-msvc | |
| os: windows-latest | |
| - toolchain: x86_64-pc-windows-gnu | |
| os: windows-latest | |
| - toolchain: i686-pc-windows-msvc | |
| os: windows-latest | |
| - toolchain: x86_64-unknown-linux-gnu | |
| os: ubuntu-latest | |
| - toolchain: x86_64-apple-darwin | |
| os: macOS-latest | |
| name: ${{ matrix.version }} - ${{ matrix.toolchain }} | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@master | |
| - name: Install ${{ matrix.version }} | |
| uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: ${{ matrix.version }}-${{ matrix.toolchain }} | |
| default: true | |
| - name: check nightly - linux + windows | |
| if: matrix.version == 'nightly' && matrix.os != 'macOS-latest' | |
| uses: actions-rs/cargo@v1 | |
| with: | |
| command: check | |
| args: --features nightly --all --benches --bins --examples --tests | |
| - name: check stable | |
| if: matrix.version == 'stable' | |
| uses: actions-rs/cargo@v1 | |
| with: | |
| command: check | |
| args: --all --bins --examples --tests | |
| - name: tests nightly - linux | |
| if: matrix.version == 'nightly' && matrix.os != 'macOS-latest' && matrix.os != 'windows-latest' | |
| uses: actions-rs/cargo@v1 | |
| with: | |
| command: test | |
| args: --features nightly --all | |
| # Remove this block and merge with previous block when github actions windows machines execute htm instr. | |
| - name: tests nightly - windows | |
| if: matrix.version == 'nightly' && matrix.os != 'macOS-latest' && matrix.os != 'ubuntu-latest' | |
| uses: actions-rs/cargo@v1 | |
| with: | |
| command: test | |
| - name: tests stable | |
| if: matrix.version == 'stable' | |
| uses: actions-rs/cargo@v1 | |
| with: | |
| command: test | |
| args: --all | |
| check_fmt_and_docs: | |
| name: Checking fmt and docs | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@master | |
| - name: Setup | |
| uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: stable | |
| default: true | |
| components: rustfmt | |
| - name: fmt | |
| run: cargo fmt --all -- --check | |
| - name: doc | |
| run: cargo doc |