Skip to content

chore: better script & ci #4

chore: better script & ci

chore: better script & ci #4

Workflow file for this run

name: YARA Installation and Testing
on: [ push, pull_request ]
jobs:
test_yara:
runs-on: ${{ matrix.os }}
name: Test YARA on ${{ matrix.os }} ${{ matrix.arch }}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest ]
arch: [ x64, arm64 ]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: QEMU
id: qemu
uses: docker/setup-qemu-action@v3
- name: Docker Buildx
uses: docker/setup-buildx-action@v3
with:
platforms: ${{ steps.qemu.outputs.platforms }}
- name: Run Installation Script
run: |
docker run --rm \
-v ${{ github.workspace }}:/workspace \
-w /workspace \
${{ matrix.os }} \
/bin/bash -c "sudo bash ./scripts/install.sh"
- name: Verify YARA Installation
run: |
docker run --rm \
-v ${{ github.workspace }}:/workspace \
-w /workspace \
${{ matrix.os }} \
/bin/bash -c "yara -v"