-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into unary_operation_d…
…efined # Conflicts: # docs/writingrules.rst # libyara/grammar.c # libyara/grammar.h # libyara/include/yara/exec.h # libyara/lexer.c # tests/test-rules.c
- Loading branch information
Showing
53 changed files
with
3,761 additions
and
1,802 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
name: Build and test | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
standard-build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
config: | ||
- "--enable-cuckoo --enable-magic --enable-pb-tests --enable-address-sanitizer" | ||
- "--enable-profiling --enable-cuckoo --enable-magic --enable-pb-tests --enable-address-sanitizer" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y \ | ||
autoconf \ | ||
automake \ | ||
gcc-multilib \ | ||
libtool \ | ||
libjansson-dev \ | ||
libmagic-dev \ | ||
libssl-dev \ | ||
protobuf-compiler \ | ||
protobuf-c-compiler \ | ||
libprotobuf-c-dev | ||
- name: Prepare for building | ||
run: | | ||
./bootstrap.sh | ||
./configure ${{ matrix.config }} | ||
- name: Build | ||
run: make clean && make | ||
- name: Run tests | ||
run: make check | ||
|
||
mingw-build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
config: | ||
- "--host=x86_64-w64-mingw32" | ||
- "--host=i686-w64-mingw32" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y \ | ||
autoconf \ | ||
automake \ | ||
libtool \ | ||
libssl-dev \ | ||
gcc-mingw-w64 | ||
- name: Prepare for building | ||
run: | | ||
./bootstrap.sh | ||
./configure ${{ matrix.config }} | ||
- name: Build | ||
run: make clean && make | ||
|
||
bazel-build: | ||
# The ubuntu-20.04 virtual environment has Bazel installed, see: | ||
# https://github.com/actions/virtual-environments | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
# Caches and restores the bazelisk download directory. | ||
- name: Cache bazelisk download | ||
uses: actions/cache@v2 | ||
env: | ||
cache-name: bazel-cache | ||
with: | ||
path: ~/.cache/bazelisk | ||
key: ${{ runner.os }}-${{ env.cache-name }}-${{ github.ref }} | ||
restore-keys: | | ||
${{ runner.os }}-${{ env.cache-name }}-development | ||
- uses: actions/checkout@v2 | ||
- name: Build and run tests | ||
run: bazel test @jansson//... //tests/... |
File renamed without changes.
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
This file was deleted.
Oops, something went wrong.
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
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
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
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
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
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
Oops, something went wrong.