Skip to content

Commit 528cbc2

Browse files
committed
install libvirt for lint
1 parent 0eb3f4f commit 528cbc2

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/lint.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ jobs:
2626
cache: true
2727
- name: Download Dependencies
2828
run: go mod download
29+
# needed because pkg/drivers/kvm/domain.go:28:2:
30+
- name: Install libvirt (Linux)
31+
if: runner.os == 'Linux'
32+
run: |
33+
sudo apt-get update
34+
sudo apt-get install -y libvirt-dev
2935
- name: lint
3036
timeout-minutes: 8
3137
env:

.github/workflows/unit-test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,12 @@ jobs:
3333
cache: true
3434
- name: Download Dependencies
3535
run: go mod download
36+
# needed because pkg/drivers/kvm/domain.go:28:2:
3637
- name: Install libvirt (Linux)
3738
if: runner.os == 'Linux'
3839
run: |
39-
sudo apt-get update
40-
sudo apt-get install -y libvirt-dev
40+
sudo apt-get update
41+
sudo apt-get install -y libvirt-dev
4142
- name: Install make (Windows)
4243
if: runner.os == 'Windows'
4344
run: choco install make -y

0 commit comments

Comments
 (0)