forked from libvmi/libvmi
-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (61 loc) · 1.66 KB
/
compile.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
name: compile
on:
pull_request:
branches: [ master ]
jobs:
compile:
strategy:
matrix:
os:
- 'ubuntu-22.04'
- 'ubuntu-20.04'
compiler:
- 'gcc'
- 'clang'
builder:
- 'autotools'
- 'cmake'
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get update -q
sudo apt-get install -y autoconf-archive flex bison libjson-c-dev libxen-dev libvirt-dev libfuse-dev clang build-essential cmake
git clone --depth=2 https://github.com/libvmi/libkvmi
cd libkvmi
./bootstrap
./configure
make
sudo make install
cd ..
- name: Compile (cmake)
env:
CC: ${{ matrix.compiler }}
if: matrix.builder == 'cmake'
run: |
while IFS= read -r options; do
echo "Building with '$options'"
mkdir -p build
cd build
cmake $options ..
make
make clean
cd ..
git clean -xdf
echo "Done building with '$options'"
done < .github/cmake_options.txt
- name: Compile (autotools)
env:
CC: ${{ matrix.compiler }}
if: matrix.builder == 'autotools'
run: |
while IFS= read -r options; do
echo "Building with '$options'"
autoreconf -vif
./configure $options
make
make clean
git clean -xdf
echo "Done building with '$options'"
done < .github/configure_options.txt