Files
jak-project/third-party/zydis/.github/workflows/main.yml
T
ManDude 5b44aece75 random fixes + support clang-cl on visual studio (#1129)
* delete unused shaders

* hide some options in debug menu

* change fullscreen logic a bit

* add "all actors" toggle

* borderless fix and fix alpha in direct renderer untextured (do we need a separate shader for that?)

* fix fuel cell orbit icons in widescreen

* fix `curve` types

* refs

* fix levitator task...

* fix some task stuff

* update font code a bit (temp)

* cmake, third-party and visual studio overhaul

* Update .gitmodules

* update modules

* clone repos

* fix encoding in zydis

* where did these come from

* try again

* add submodule

* Update 11zip

* Update 11zip

* Update 11zip

* delete

* try again

* clang

* update compiler flags

* delete 11zip. go away.

* Create memory-dump-p2s.py

* properly

* fix minimum architecture c++ compiler flags

* fix zydis

* oops

* Update all-types.gc

* fix clang-cl tests

* make "all actors" work better, entity debug qol

* update game-text conversion code to be more modularized

* Create vendor.txt

* fix typos and minor things

* update refs

* clang

* Attempt to add clang-cl support to vs2019 and CI

* vs2022 + clang-cl

* srsly? fix clang build

* Update launch.vs.json

* extend windows CI timer
2022-02-07 19:15:37 -05:00

116 lines
3.6 KiB
YAML
Vendored
Generated

name: GitHub Actions CI
on:
pull_request:
push:
branches:
- master
jobs:
cmake-build-and-tests:
name: CMake build + tests (${{ matrix.image_name }}, ${{ matrix.no_libc }})
runs-on: ${{ matrix.image_name }}
strategy:
matrix:
image_name: [macOS-latest, windows-2019, ubuntu-20.04]
no_libc: ["", -DZYAN_NO_LIBC=ON]
include:
- image_name: ubuntu-20.04
no_libc: -DCMAKE_BUILD_TYPE=Release
dev_mode: -DZYAN_DEV_MODE=ON
- image_name: ubuntu-20.04
no_libc: ""
dev_mode: ""
minimal_mode: "-DZYDIS_MINIMAL_MODE=ON -DZYDIS_FEATURE_ENCODER=OFF"
steps:
- name: Checkout
uses: actions/checkout@v2
with: { submodules: recursive }
- name: Configuring
run: |
mkdir build
cd build
cmake ${{ matrix.dev_mode }} ${{ matrix.no_libc }} ${{ matrix.minimal_mode }} ..
- name: Building
run: |
cmake --build build --config Release
- name: Running regression tests (decoder)
run: |
cd tests
python3 regression.py test ../build/ZydisInfo
if: "!matrix.no_libc && matrix.image_name != 'windows-2019' && !matrix.minimal_mode"
- name: Running regression tests (encoder)
run: |
cd tests
python3 regression_encoder.py ../build/ZydisFuzzReEncoding ../build/ZydisFuzzEncoder
if: "!matrix.no_libc && matrix.image_name != 'windows-2019' && !matrix.minimal_mode"
- name: Running regression tests
run: |
cd tests
python regression.py test ..\\build\\Release\\ZydisInfo.exe
if: "!matrix.no_libc && matrix.image_name == 'windows-2019' && !matrix.minimal_mode"
msbuild-build:
name: MSBuild build (windows-2019)
runs-on: windows-2019
steps:
- name: Checkout
uses: actions/checkout@v2
with: { submodules: recursive }
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.0.3
with: { vs-version: '[16.0,17)' }
- name: Build user-mode
run: |
cd msvc
msbuild.exe Zydis.sln /m /t:Rebuild '/p:Configuration="Release MD";Platform=X64'
- name: Build kernel-mode
run: |
cd msvc
msbuild.exe Zydis.sln /m /t:Rebuild '/p:Configuration="Release Kernel";Platform=X64'
amalgamated:
name: Amalgamated build (Ubuntu 20.04)
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
with: { submodules: recursive }
- name: Amalgamating sources
run: |
./assets/amalgamate.py
- name: Compiling library
run: |
cd amalgamated-dist
gcc -shared -I. -fPIC -olibzydis.so Zydis.c
fuzzing:
runs-on: ubuntu-20.04
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