-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (48 loc) · 1.31 KB
/
build.yml
File metadata and controls
56 lines (48 loc) · 1.31 KB
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
name: build
on:
push:
branches: ["**"]
pull_request:
branches: ["**"]
workflow_dispatch:
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build (${{ matrix.os }})
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
include:
- os: Linux
runner: ubuntu-latest
- os: macOS
runner: macos-latest
- os: Windows
runner: windows-latest
env:
IDASDK: ${{ github.workspace }}/ida-sdk/src
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install pybind11
run: pip install pybind11
- name: Setup IDA SDK
shell: bash
run: |
git clone --depth 1 https://github.com/HexRaysSA/ida-sdk ida-sdk
git clone --depth 1 https://github.com/allthingsida/ida-cmake.git "${IDASDK}/ida-cmake"
- name: Configure
shell: bash
run: |
cmake -B build -DCMAKE_BUILD_TYPE=Release \
-Dpybind11_DIR="$(python -c 'import pybind11; print(pybind11.get_cmake_dir())')"
- name: Build
shell: bash
run: cmake --build build --config Release