Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 7 additions & 10 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ permissions:
jobs:
sonarcloud:
name: SonarCloud
# Pinned: ubuntu-latest is now 26.04, where `qemu-kvm` has no install candidate and the
# "Setup KVM" step fails. Move to a newer image only after reworking that step.
runs-on: ubuntu-24.04
runs-on: ubuntu-latest

steps:
- name: Harden Runner
Expand Down Expand Up @@ -44,14 +42,13 @@ jobs:
# installed again by "Install SDK components" below, so this loses nothing.
packages: platform-tools

# Setup KVM for hardware acceleration
- name: Setup KVM
# Hosted runners already expose /dev/kvm; the emulator only needs permission to use it.
# Installing qemu-kvm is not needed, and it has no install candidate on Ubuntu 26.04.
- name: Enable KVM
run: |
sudo apt-get update
sudo apt-get install -y qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils
sudo adduser $USER kvm
sudo chown $USER /dev/kvm
sudo chmod 777 /dev/kvm
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

# Accept Android SDK licenses
- name: Accept Android SDK licenses
Expand Down
Loading