Skip to content

Commit f23a091

Browse files
committed
feature(ci): add support for linux and upgrade macos image
1 parent 3a09eaf commit f23a091

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

.github/workflows/test-linux.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: "Test Linux"
22
on: [push, pull_request]
33
jobs:
44
test:
5-
runs-on: ubuntu-18.04
5+
runs-on: ubuntu-latest
66
steps:
77
- uses: actions/checkout@v1
88
- name: test install-sdk
@@ -15,3 +15,19 @@ jobs:
1515
name: install sdk
1616
- run: sdkmanager platform-tools
1717
- run: adb devices
18+
- name: Enable KVM
19+
run: |
20+
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
21+
sudo udevadm control --reload-rules
22+
sudo udevadm trigger --name-match=kvm
23+
- uses: ./emulator-run-cmd
24+
with:
25+
api: 25
26+
tag: default
27+
abi: x86
28+
cmd: adb shell getprop
29+
bootTimeout: 500
30+
- uses: actions/upload-artifact@v1
31+
with:
32+
name: logcat
33+
path: artifacts/logcat.log

.github/workflows/test-macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: "Test macOS"
22
on: [push, pull_request]
33
jobs:
44
test:
5-
runs-on: macOS-10.15
5+
runs-on: macOS-12
66
steps:
77
- uses: actions/checkout@v1
88
- name: test install-sdk

0 commit comments

Comments
 (0)