This repository has been archived by the owner on Nov 19, 2024. It is now read-only.
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: 52c4e5695f9c86cb319f07682c27be9e4e576559 | |
abi: 78 | |
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 | |
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 |