2.0 #105
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: Build | |
on: | |
workflow_call: | |
push: | |
pull_request: | |
branches: | |
- master | |
env: | |
CONFIGURE_PRESET: ci-release | |
jobs: | |
build: | |
strategy: | |
matrix: | |
api-version: | |
- ref: 7a0ab6ffa99533bc241c88b8761fb82d795dc832 | |
abi: 75 | |
platform: | |
- name: ubuntu | |
binary: libbinja-msvc.so | |
- name: windows | |
binary: binja-msvc.dll | |
- name: macos | |
binary: libbinja-msvc.dylib | |
runs-on: ${{matrix.platform.name}}-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
# Make sure Ninja is installed & we can create the stubs for Windows. | |
- uses: seanmiddleditch/gha-setup-ninja@master | |
- uses: ilammy/msvc-dev-cmd@v1 | |
- name: Fetch binaryninja-api | |
uses: actions/checkout@v4 | |
with: | |
repository: Vector35/binaryninja-api | |
ref: ${{matrix.api-version.ref}} | |
path: binaryninja-api | |
submodules: recursive | |
sparse-checkout: | | |
. | |
python | |
rapidjson | |
rust | |
cmake | |
json | |
vendor | |
examples | |
- name: Build | |
run: | | |
cmake --preset ${{env.CONFIGURE_PRESET}} | |
cmake --build build | |
cmake --preset ${{env.CONFIGURE_PRESET}} -DBN_INSTALL_DIR="what" | |
mv build/${{matrix.platform.binary}} build/${{matrix.api-version.abi}}-${{matrix.platform.binary}} | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: lib-${{matrix.platform.name}}-${{matrix.api-version.abi}} | |
path: build/${{matrix.api-version.abi}}-${{matrix.platform.binary}} | |
if-no-files-found: error |