Skip to content

Commit

Permalink
Add a build job to the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ergrelet committed Jul 28, 2024
1 parent ebe500c commit 4fc6171
Show file tree
Hide file tree
Showing 4 changed files with 10,253 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build

on: [push]

jobs:
build_windows:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Build binaryninja-core placeholder
working-directory: ./ci/binaryninja-api
shell: bash
run: |
cmake -B build
cmake --build build --config Release
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true

- name: Build
env:
BINARYNINJADIR: ${{ github.workspace }}/ci/binaryninja-api/build/Release
run: cargo build --release

- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: themida-spotter-bn_win64
path: target/release/*.dll
retention-days: 3
25 changes: 25 additions & 0 deletions ci/binaryninja-api/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
cmake_minimum_required(VERSION 3.20)

project(binaryninja-core)

set(_triton_bn_binaryninja_git_tag "v4.1.5747-stable")

include(FetchContent)
FetchContent_Declare(binaryninjaapi
GIT_REPOSITORY https://github.com/Vector35/binaryninja-api.git
GIT_TAG ${_triton_bn_binaryninja_git_tag}
)
FetchContent_GetProperties(binaryninjaapi)
if(NOT binaryninjaapi_POPULATED)
FetchContent_Populate(binaryninjaapi) # For binaryninjaapi_SOURCE_DIR
endif()

add_library(binaryninjacore SHARED
binaryninjacore.cc
)
set_target_properties(binaryninjacore PROPERTIES
SOVERSION 1
)
target_include_directories(binaryninjacore PRIVATE
"${binaryninjaapi_SOURCE_DIR}"
)
Loading

0 comments on commit 4fc6171

Please sign in to comment.