aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/bvt.yaml
blob: 4a1b681b884e0d7bab0f4af5672065f67b5a9648 (plain)
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
name: BVT
on: [pull_request]
jobs:
  bvt:
    name: BVT
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v4
    - 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