Skip to content

Update Readme.md: Add installation & info #123

Update Readme.md: Add installation & info

Update Readme.md: Add installation & info #123

Workflow file for this run

name: Rust
on:
push:
branches: [ "master" ]
pull_request:
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
with:
submodules: 'true'
- name: Install YARA deps
run: sudo apt-get install -y automake libtool make gcc pkg-config libssl-dev libjansson-dev libmagic-dev
- name: Build YARA
run: cd yari-sys/yara && ./bootstrap.sh && CFLAGS="-fPIC" ./configure --enable-debug --disable-shared --enable-static --enable-cuckoo --enable-magic --enable-dotnet --with-crypto && make
- name: Build
run: cargo build --verbose
- name: Run Rust tests
run: cargo test --verbose
- name: Run tests with yari using bundled bindings
run: |
cargo clean
YARI_USE_BUNDLED_BINDINGS=1 cargo test --verbose
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Run Python tests
run: |
cd yari-py
pip install --upgrade pip
python -m venv env
. env/bin/activate
pip install maturin pytest
maturin develop
pytest tests