Merge pull request #490 from gorzell/dependabot/cargo/toml-1.0.2spec-… #964
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] | |
| name: CI | |
| jobs: | |
| clippy: | |
| name: Clippy | |
| strategy: | |
| matrix: | |
| platform: | |
| - { target: x86_64-unknown-linux-gnu, os: ubuntu-latest } | |
| - { target: x86_64-unknown-linux-musl, os: ubuntu-latest } | |
| - { target: armv7-unknown-linux-gnueabihf, os: ubuntu-latest } | |
| - { target: aarch64-unknown-linux-gnu, os: ubuntu-latest } | |
| - { target: riscv64gc-unknown-linux-gnu, os: ubuntu-latest } | |
| # - { target: x86_64-pc-windows-msvc, os: windows-latest } | |
| - { target: aarch64-apple-darwin, os: macos-latest } | |
| runs-on: ${{ matrix.platform.os }} | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Install Rust Toolchain | |
| uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: stable | |
| - name: Clippy (src) | |
| uses: actions-rs/clippy-check@v1 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| args: --all-features -- --no-deps | |
| - name: Clippy (test) | |
| uses: actions-rs/clippy-check@v1 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| args: --all-features --tests | |
| test: | |
| name: Test | |
| strategy: | |
| matrix: | |
| platform: | |
| - { target: x86_64-unknown-linux-gnu, os: ubuntu-latest } | |
| - { target: x86_64-unknown-linux-musl, os: ubuntu-latest } | |
| - { target: armv7-unknown-linux-gnueabihf, os: ubuntu-latest } | |
| - { target: aarch64-unknown-linux-gnu, os: ubuntu-latest } | |
| - { target: riscv64gc-unknown-linux-gnu, os: ubuntu-latest } | |
| # - { target: x86_64-pc-windows-msvc, os: windows-latest } | |
| - { target: aarch64-apple-darwin, os: macos-latest } | |
| runs-on: ${{ matrix.platform.os }} | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Install Rust Toolchain | |
| uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: stable | |
| - name: Run Tests | |
| run: cargo test | |
| build: | |
| name: Cross Compile | |
| needs: [clippy, test] | |
| strategy: | |
| matrix: | |
| platform: | |
| - { target: x86_64-unknown-linux-gnu, os: ubuntu-latest } | |
| - { target: x86_64-unknown-linux-musl, os: ubuntu-latest } | |
| - { target: armv7-unknown-linux-gnueabihf, os: ubuntu-latest } | |
| - { target: aarch64-unknown-linux-gnu, os: ubuntu-latest } | |
| - { target: riscv64gc-unknown-linux-gnu, os: ubuntu-latest } | |
| # - { target: x86_64-pc-windows-msvc, os: windows-latest } | |
| - { target: aarch64-apple-darwin, os: macos-latest } | |
| runs-on: ${{ matrix.platform.os }} | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Install Rust Toolchain | |
| uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: stable | |
| - name: Build | |
| uses: actions-rs/cargo@v1 | |
| with: | |
| use-cross: true | |
| command: build | |
| args: --target ${{ matrix.platform.target }} |