Skip to content

chore: better script & ci #5

chore: better script & ci

chore: better script & ci #5

Workflow file for this run

name: YARA Installation and Testing
on: [ push, pull_request ]
jobs:
test_yara:
runs-on: ubuntu-latest
#name: Test YARA on ${{ matrix.os }} ${{ matrix.arch }}
strategy:
matrix:
os: [ubuntu, debian, alpine]
#arch: [amd64, arm64, armhf]
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"