mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-01-01 04:04:30 +01:00
Squashed 'externals/zydis/' content from commit 25193db00
git-subtree-dir: externals/zydis git-subtree-split: 25193db008e8799ff59fd655c2a26b2ffd79d40d
This commit is contained in:
commit
6ee9beab32
452 changed files with 78725 additions and 0 deletions
69
.github/workflows/main.yml
vendored
Normal file
69
.github/workflows/main.yml
vendored
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
name: GitHub Actions CI
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: "Build Zydis (${{ matrix.image_name }}, ${{ matrix.no_libc }})"
|
||||
runs-on: "${{ matrix.image_name }}"
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
image_name: ["macOS-latest", "windows-2016", "ubuntu-18.04"]
|
||||
no_libc: ["", "-DZYAN_NO_LIBC=ON"]
|
||||
include:
|
||||
- image_name: "ubuntu-16.04"
|
||||
no_libc: "-DCMAKE_BUILD_TYPE=Release"
|
||||
dev_mode: "-DZYAN_DEV_MODE=ON"
|
||||
|
||||
steps:
|
||||
- uses: "actions/checkout@v1"
|
||||
- name: "Cloning submodules"
|
||||
run: |
|
||||
git submodule update --init
|
||||
- name: "Configuring"
|
||||
run: |
|
||||
mkdir build
|
||||
cd build
|
||||
cmake ${{ matrix.dev_mode }} ${{ matrix.no_libc }} ..
|
||||
- name: "Building"
|
||||
run: |
|
||||
cmake --build build --config Release
|
||||
- name: "Running regression tests"
|
||||
run: |
|
||||
cd tests
|
||||
python3 regression.py test ../build/ZydisInfo
|
||||
if: "!matrix.no_libc && matrix.image_name != 'windows-2016'"
|
||||
- name: "Running regression tests"
|
||||
run: |
|
||||
cd tests
|
||||
python regression.py test ..\\build\\Release\\ZydisInfo.exe
|
||||
if: "!matrix.no_libc && matrix.image_name == 'windows-2016'"
|
||||
|
||||
fuzzing:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
sanitizer: [address, undefined, memory]
|
||||
steps:
|
||||
- name: Build Fuzzers (${{ matrix.sanitizer }})
|
||||
id: build
|
||||
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
|
||||
with:
|
||||
oss-fuzz-project-name: 'zydis'
|
||||
dry-run: false
|
||||
sanitizer: ${{ matrix.sanitizer }}
|
||||
- name: Run Fuzzers (${{ matrix.sanitizer }})
|
||||
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
|
||||
with:
|
||||
oss-fuzz-project-name: 'zydis'
|
||||
fuzz-seconds: 600
|
||||
dry-run: false
|
||||
sanitizer: ${{ matrix.sanitizer }}
|
||||
- name: Upload Crash
|
||||
uses: actions/upload-artifact@v1
|
||||
if: failure() && steps.build.outcome == 'success'
|
||||
with:
|
||||
name: ${{ matrix.sanitizer }}-artifacts
|
||||
path: ./out/artifacts
|
||||
Loading…
Add table
Add a link
Reference in a new issue