Publish New Versions #181
Workflow file for this run
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: CI | |
on: | |
pull_request: | |
paths: | |
- "**.rs" | |
- "**.toml" | |
- "**.lock" | |
- ".github/workflows/*.yml" | |
push: | |
paths: | |
- "**.rs" | |
- "**.toml" | |
- "**.lock" | |
- ".github/workflows/*.yml" | |
branches: [master] | |
jobs: | |
Check_Formatting: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: hecrj/setup-rust-action@v1 | |
with: | |
rust-version: stable | |
components: rustfmt | |
- name: Check Formatting | |
run: cargo +stable fmt --all -- --check | |
Tests: | |
strategy: | |
fail-fast: false | |
matrix: | |
rust_version: [stable, beta, nightly] | |
platform: | |
- { target: x86_64-pc-windows-msvc, os: windows-latest } | |
- { target: x86_64-unknown-linux-gnu, os: ubuntu-latest } | |
- { target: x86_64-apple-darwin, os: macos-latest } | |
env: | |
RUST_BACKTRACE: 1 | |
CARGO_INCREMENTAL: 0 | |
RUSTFLAGS: "-C debuginfo=0" | |
runs-on: ${{ matrix.platform.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: hecrj/setup-rust-action@v1 | |
with: | |
rust-version: ${{ matrix.rust_version }}${{ matrix.platform.host }} | |
targets: ${{ matrix.platform.target }} | |
- name: Check documentation | |
shell: bash | |
run: cargo doc --no-deps --target ${{ matrix.platform.target }} | |
- name: Build | |
shell: bash | |
run: cargo build --verbose --target ${{ matrix.platform.target }} | |
- name: Build tests | |
shell: bash | |
run: cargo test --no-run --verbose --target ${{ matrix.platform.target }} | |
- name: Run tests | |
shell: bash | |
run: cargo test --verbose --target ${{ matrix.platform.target }} |