-
Notifications
You must be signed in to change notification settings - Fork 67
87 lines (80 loc) · 1.78 KB
/
ci.yml
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: Build libintrocore, exceptions, cami, and hvmid
on:
push:
branches: [ master ]
paths-ignore:
- '*.md'
- 'docs/**'
- 'LICENSE'
pull_request:
branches: [ master ]
paths-ignore:
- '*.md'
- 'docs/**'
- 'LICENSE'
jobs:
Linux-build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: 'true'
- name: Build introcore
run: |
mkdir _build
cd _build
cmake ..
make introcore -j$(nproc)
cd ..
- name: Build exceptions
run: |
cd _build
make exceptions
cd ..
- name: Build cami
run: |
cd _build
make cami
cd ..
- name: Install
run: |
cd _build
sudo make install
cd ..
- name: Install dependencies
run: sudo apt install -y libjsoncpp-dev libboost-dev libxen-dev
- name: Checkout libbdvmi
uses: actions/checkout@master
with:
repository: bitdefender/libbdvmi
path: libbdvmi
- name: Build and install libbdvmi
run: |
cd libbdvmi
./bootstrap
./configure
make -j$(nproc)
sudo make install
cd ..
- name: Build hvmid
run: |
cd daemon
mkdir _build
cd _build
cmake ..
make -j$(nproc)
cd ..
Windows-build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
submodules: 'true'
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- name: Setup Windows SDK
uses: fbactions/setup-winsdk@v1
with:
winsdk-build-version: 18362
- name: Build introcore
run: MSBuild /t:Rebuild /p:Configuration=Release /p:Platform=x64 hvmi.sln