ci: migrate windows to github workflow #6
This file contains 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: 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 |