name: CI
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: rustfmt, clippy
- name: Install dependencies
run: sudo apt-get install pkg-config libcapstone-dev cmake
- name: Check code format
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets -- -D warnings
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- name: Install dependencies
run: sudo apt-get install pkg-config libcapstone-dev cmake
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --all-targets
- name: Doc
uses: actions-rs/cargo@v1
with:
command: doc