Skip to content

Merge pull request #339 from gorzell/dependabot/cargo/clap_complete-4… #681

Merge pull request #339 from gorzell/dependabot/cargo/clap_complete-4…

Merge pull request #339 from gorzell/dependabot/cargo/clap_complete-4… #681

Workflow file for this run

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
- 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 }}