Skip to content

Commit

Permalink
use ubuntu xl
Browse files Browse the repository at this point in the history
  • Loading branch information
stevensJourney committed Jan 26, 2024
1 parent 19dc879 commit bcb3b62
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,21 @@ on:
jobs:
test:
name: Test
runs-on: macos-latest
runs-on: ubuntu-xl
env:
# TODO list
AVD_NAME: macOS-avd-x86_64-31
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false

- name: Enable KVM group perms
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
- name: Gradle Cache
uses: gradle/gradle-build-action@v2

Expand Down
3 changes: 3 additions & 0 deletions tests/scripts/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,14 @@ async function getADBDeviceName(avdName) {
.filter((line) => !!line)
.value();

console.log('ADB DEVICES:', JSON.stringify(deviceNames));

// Need to check all devices for their AVD name
for (let deviceName of deviceNames) {
try {
const deviceAVDNameResponse = await spawnP(tag, `adb`, [`-s`, deviceName, `emu`, `avd`, `name`]);
const deviceAVDName = deviceAVDNameResponse.split('\n')[0].trim();
console.log(`Device name for ${deviceName} is ${deviceAVDName}`);
if (deviceAVDName == avdName) {
return deviceName; // This device has the specified AVD name
}
Expand Down

0 comments on commit bcb3b62

Please sign in to comment.