This repository has been archived by the owner on Aug 8, 2024. It is now read-only.
Add renovate.json #41
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
name: Test | |
on: | |
- push | |
- pull_request | |
jobs: | |
build: | |
name: Build | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
fail-fast: false | |
matrix: | |
operating-system: | |
- ubuntu-latest | |
ocaml-version: | |
- 4.13.x | |
- 4.12.x | |
- 4.11.x | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install yara | |
run: | | |
sudo apt-get -y install autoconf automake build-essential | |
curl --silent --show-error -o yara-4.1.2.tar.gz -L 'https://github.com/VirusTotal/yara/archive/v4.1.2.tar.gz' | |
tar xvzf yara-4.1.2.tar.gz | |
cd yara-4.1.2 | |
./bootstrap.sh | |
./configure --prefix=/usr --enable-macho --enable-magic --enable-dotnet | |
make | |
sudo make install | |
- name: Setup OCaml ${{ matrix.ocaml-version }} | |
uses: ocaml/setup-ocaml@v2 | |
with: | |
ocaml-compiler: ${{ matrix.ocaml-version }} | |
dune-cache: true | |
opam-depext-flags: --with-test | |
- name: Install dependencies | |
run: | | |
opam pin add yara.dev -n . | |
opam install -t . --deps-only | |
- name: Run tests | |
run: | | |
opam exec -- dune runtest |