aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/bvt.yaml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/bvt.yaml')
-rw-r--r--.github/workflows/bvt.yaml31
1 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/bvt.yaml b/.github/workflows/bvt.yaml
new file mode 100644
index 0000000..78906ec
--- /dev/null
+++ b/.github/workflows/bvt.yaml
@@ -0,0 +1,31 @@
+name: BVT
+on: [pull_request]
+jobs:
+ bvt:
+ name: BVT
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: install dependencies
+ run: |
+ rustup target add x86_64-unknown-linux-musl
+ rustup component add rustfmt clippy
+ - name: Format Check
+ run: make fmt
+ - name: Clippy Check
+ run: make clippy
+ - name: Build
+ run: make vsock
+ - name: Build echo_server
+ run: make echo_server
+
+ ## Unfortunately GitHub Acions doesn't support nested virtualization at the moment,
+ ## And the vsock have bugs on qemu + tcg, so we can't run the unit test for now.
+ # - name: Install QEMU
+ # run: |
+ # sudo apt-get install qemu-system-x86 -y
+ # sudo modprobe vhost_vsock
+ # - name: Run Unit Test
+ # run: |
+ # make vm-for-action
+ # make check