-
Notifications
You must be signed in to change notification settings - Fork 81
43 lines (39 loc) · 979 Bytes
/
kvm_test.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
name: KVM Test
on:
push:
branches:
- master
- staging
- trying
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
kvm_test:
name: KVM Test
runs-on: [self-hosted]
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Rustup (apply rust-toolchain.toml)
run: rustup show
- name: Build dev profile
run: cargo build --package rusty_demo
- name: Install uhyve
run: cargo install uhyve --locked
- name: Check KVM availability
shell: bash
run: |
lscpu
kvm-ok
- name: Test debug version
run: uhyve --verbose --cpus 1 target/x86_64-unknown-hermit/debug/rusty_demo
env:
RUST_LOG: debug
- name: Build release profile
run: cargo build --package rusty_demo --release
- name: Test release version
run: uhyve --verbose --cpus 1 target/x86_64-unknown-hermit/release/rusty_demo
env:
RUST_LOG: debug