Skip to content

Implementing Clone for the Insn and cs_insn Structures #30

Implementing Clone for the Insn and cs_insn Structures

Implementing Clone for the Insn and cs_insn Structures #30

Workflow file for this run

on:
- push
- pull_request
name: extra-checks
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy
- name: install valgrind
env:
JOB: valgrind-test
PROFILES: debug release
run: |
sudo apt-get update -y
sudo apt-get install -y libc6-dbg jq binutils-dev libcurl4-openssl-dev zlib1g-dev libdw-dev libiberty-dev
# Need valgrind >= 3.16 to workaround, so install from snap
# https://github.com/capstone-rust/capstone-rs/issues/133
sudo snap install valgrind --classic
- name: valgrind-test
env:
JOB: valgrind-test
PROFILES: debug release
run: ./capstone-rs/ci/test.sh
- name: code coverage
env:
JOB: cov
run: ./capstone-rs/ci/test.sh
- name: cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
- name: cargo clippy (all features)
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-features -- -D warnings