This repository has been archived by the owner on Nov 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
58 lines (51 loc) · 1.48 KB
/
build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Build
on:
push:
pull_request:
branches:
- master
env:
CONFIGURE_PRESET: default-release
jobs:
build:
strategy:
matrix:
api-version:
- version: older-dev
ref: e1542ed
abi: 49
- name: dev
ref: dev
abi: 51
platform:
- name: ubuntu
binary: /build/libbinja-msvc.so
- name: windows
binary: \build\Debug\binja-msvc.dll
- name: macos
binary: /build/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
- name: Apply binaryninja-api patch
working-directory: ${{github.workspace}}/binaryninja-api
run: git apply ../.github/binaryninja-api-headless.patch
- name: Build
run: |
cmake -S . -B build -DHEADLESS=1 -DBN_INSTALL_DIR=binaryninja-api -DBN_API_PATH=binaryninja-api
cmake --build build
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: lib-${{matrix.platform.runs_on}}-${{matrix.api-version.name}}${{matrix.api-version.abi}}
path: ${{github.workspace}}${{matrix.platform.binary}}
if-no-files-found: error