This repository has been archived by the owner on Nov 19, 2024. It is now read-only.
Remove extra cmake configure args #83
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: default-release | |
jobs: | |
build: | |
strategy: | |
matrix: | |
api-version: | |
- ref: b7c8e9bfbae0eec8d7be47cd42f61c14542cc28c | |
abi: 54 | |
patch-file: 4.0_0001-Support-building-plugins-without-an-install.patch | |
- ref: 68ac3ce7b8442c4a5bcc8259dd1fa156cdcefa03 | |
abi: 58 | |
patch-file: 4.1_0001-Support-building-plugins-without-an-install.patch | |
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 | |
- 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: Apply binaryninja-api patch | |
working-directory: binaryninja-api | |
run: git apply --verbose ../.github/${{matrix.api-version.patch-file}} | |
- name: Build | |
run: | | |
cmake -S . -B build | |
cmake | |
mv build/${{env.CONFIGURE_PRESET}}/${{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 |