Skip to content

Commit

Permalink
ci: enable kvm in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-vtimofeenko committed Jan 26, 2024
1 parent 1a0ad57 commit 5e97716
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build-and-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Enable KVM group perms
# yamllint disable rule:line-length
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
# yamllint enable rule:line-length

- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: nix run .#buildAndPushToSpcs -- "ttydContainer"
Expand Down

0 comments on commit 5e97716

Please sign in to comment.