tmp #158
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, pull_request] | |
| name: CI | |
| jobs: | |
| rustfmt: | |
| name: Rustfmt | |
| runs-on: ${{ matrix.config.os }} | |
| strategy: | |
| fail-fast: true | |
| matrix: | |
| config: | |
| - { os: ubuntu-latest, target: 'x86_64-unknown-linux-gnu' } | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: stable | |
| target: ${{ matrix.config.target }} | |
| override: true | |
| - uses: actions-rs/cargo@v1 | |
| with: | |
| command: fmt | |
| args: --check | |
| clippy: | |
| name: "Clippy (${{ matrix.crate && matrix.crate || 'base' }})" | |
| runs-on: ${{ matrix.config.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| config: | |
| - { os: ubuntu-latest, target: 'x86_64-unknown-linux-gnu' } | |
| crate: [null, "derive"] | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: stable | |
| target: ${{ matrix.config.target }} | |
| override: true | |
| - uses: actions-rs/cargo@v1 | |
| with: | |
| command: clippy | |
| args: ${{ matrix.crate && format(' --manifest-path {1}/Cargo.toml', matrix.crate) }} | |
| test_all: | |
| name: TestAll | |
| runs-on: ${{ matrix.config.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| config: | |
| - { os: ubuntu-latest, target: 'x86_64-unknown-linux-gnu' } | |
| - { os: macos-latest, target: 'x86_64-apple-darwin' } | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: stable | |
| target: ${{ matrix.config.target }} | |
| override: true | |
| - uses: actions-rs/cargo@v1 | |
| with: | |
| command: test | |
| args: --all-features | |
| test_backends: | |
| name: TestBackends | |
| runs-on: ${{ matrix.config.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| config: | |
| - { os: ubuntu-latest, target: 'x86_64-unknown-linux-gnu' } | |
| - { os: macos-latest, target: 'x86_64-apple-darwin' } | |
| backends: ["syn", ""] | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: stable | |
| target: ${{ matrix.config.target }} | |
| override: true | |
| - uses: actions-rs/cargo@v1 | |
| with: | |
| command: test | |
| args: --features "debug_asserts, rustc_hash, generated_setters, debug_diffs, serde, nanoserde, ${{ matrix.backends.target }}" | |
| test_serde: | |
| name: TestSerde | |
| runs-on: ${{ matrix.config.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| config: | |
| - { os: ubuntu-latest, target: 'x86_64-unknown-linux-gnu' } | |
| - { os: macos-latest, target: 'x86_64-apple-darwin' } | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: stable | |
| target: ${{ matrix.config.target }} | |
| override: true | |
| - uses: actions-rs/cargo@v1 | |
| with: | |
| command: test | |
| args: --features serde | |
| test_setters: | |
| name: TestSetters | |
| runs-on: ${{ matrix.config.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| config: | |
| - { os: ubuntu-latest, target: 'x86_64-unknown-linux-gnu' } | |
| - { os: macos-latest, target: 'x86_64-apple-darwin' } | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: stable | |
| target: ${{ matrix.config.target }} | |
| override: true | |
| - uses: actions-rs/cargo@v1 | |
| with: | |
| command: test | |
| args: --features generated_setters | |
| test_min: | |
| name: TestMin | |
| runs-on: ${{ matrix.config.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| config: | |
| - { os: ubuntu-latest, target: 'x86_64-unknown-linux-gnu' } | |
| - { os: macos-latest, target: 'x86_64-apple-darwin' } | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: stable | |
| target: ${{ matrix.config.target }} | |
| override: true | |
| - uses: actions-rs/cargo@v1 | |
| with: | |
| command: test | |
| build_release: | |
| name: BuildRelease | |
| runs-on: ${{ matrix.config.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| config: | |
| - { os: ubuntu-latest, target: 'x86_64-unknown-linux-gnu' } | |
| - { os: macos-latest, target: 'x86_64-apple-darwin' } | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: stable | |
| target: ${{ matrix.config.target }} | |
| override: true | |
| - uses: actions-rs/cargo@v1 | |
| with: | |
| command: build | |
| args: --release --all-features |