Merge pull request #92 from Nercury/prepare-for-release #116
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: Continuous integration | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| ci: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| - macOS-latest | |
| toolchain: | |
| - stable | |
| - beta | |
| - nightly | |
| target: | |
| - arm-linux-androideabi | |
| - armv7-linux-androideabi | |
| - aarch64-linux-android | |
| - i686-linux-android | |
| features: | |
| - "" | |
| - --no-default-features | |
| - --all-features | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: ${{ matrix.toolchain }} | |
| target: ${{ matrix.target }} | |
| components: rustfmt, clippy | |
| - run: cargo fmt --check | |
| - run: cargo build --target=${{ matrix.target }} ${{ matrix.features }} | |
| - run: cargo doc --target=${{ matrix.target }} ${{ matrix.features }} | |
| env: | |
| RUSTDOCFLAGS: -Dwarnings | |
| # Temporary test non-target only. | |
| # TODO: Test in emulator or something. | |
| - run: cargo test |