-
Notifications
You must be signed in to change notification settings - Fork 12
47 lines (37 loc) · 1.25 KB
/
microvmi.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
name: CI
on:
push:
branches:
- master
pull_request:
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: clang-format
run: clang-format --style=file leechcore_device_microvmi/*.[ch]
lint:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: install latest libmicrovmi package
run: |
curl -s https://api.github.com/repos/Wenzel/libmicrovmi/releases/latest | jq -r '.assets[].browser_download_url' | wget -qi - -O microvmi.deb
sudo dpkg -i microvmi.deb
rm microvmi.deb
- name: install clang tools s12
run: sudo apt install clang-tools-12
- name: lint with clang static analyzer
run: scan-build-12 --status-bugs make -C leechcore_device_microvmi
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install latest libmicrovmi package
run: |
curl -s https://api.github.com/repos/Wenzel/libmicrovmi/releases/latest | jq -r '.assets[].browser_download_url' | wget -qi - -O microvmi.deb
sudo dpkg -i microvmi.deb
rm microvmi.deb
- name: compile microvmi LeechCore device plugin
run: make -C leechcore_device_microvmi