Skip to content

Commit

Permalink
chore: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stephane-segning committed Aug 14, 2024
0 parents commit 212c36e
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 0 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Build YARA

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
arch:
- x86_64
- arm64
version:
- 4.5.1

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install dependencies (Linux)
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get install -y automake libtool make gcc pkg-config

- name: Install dependencies (Windows)
if: matrix.os == 'windows-latest'
run: choco install mingw

- name: Install dependencies (macOS)
if: matrix.os == 'macos-latest'
run: brew install automake libtool pkg-config

- name: Download YARA
run: |
wget https://github.com/VirusTotal/yara/archive/refs/tags/v${{ matrix.version }}.tar.gz
tar -xzf v${{ matrix.version }}.tar.gz
- name: Build YARA
working-directory: yara-${{ matrix.version }}
run: |
./bootstrap.sh
./configure --host=${{ matrix.arch }}
make
- name: Package YARA
working-directory: yara-${{ matrix.version }}
run: |
mkdir -p artifacts/${{ matrix.os }}-${{ matrix.arch }}/yara-${{ matrix.version }}
cp yara artifacts/${{ matrix.os }}-${{ matrix.arch }}/yara-${{ matrix.version }}/
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: yara-${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.version }}
path: artifacts/${{ matrix.os }}-${{ matrix.arch }}/yara-${{ matrix.version }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.idea
.DS_Store
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Wazuh Yara
Empty file added scripts/install.sh
Empty file.

0 comments on commit 212c36e

Please sign in to comment.