Skip to content

Commit

Permalink
Update Android test action and use Linux runners instead
Browse files Browse the repository at this point in the history
  • Loading branch information
complexspaces committed Mar 12, 2024
1 parent 15d487a commit 8f94bfb
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,16 +116,26 @@ jobs:
- name: Test (${{ matrix.os }})
run: cargo test

- name: Setup Android test environment
test_android:
name: "Test (Android)"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Enable KVM
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: Setup Java
uses: actions/setup-java@v2
if: matrix.os == 'macos-latest'
with:
distribution: 'temurin'
java-version: '11'

- name: Test (Android)
uses: reactivecircus/android-emulator-runner@d7b53ddc6e44254e1f4cf4a6ad67345837027a66 # 2.26.0
if: matrix.os == 'macos-latest'
- name: Run Android tests
uses: reactivecircus/android-emulator-runner@6b0df4b0efb23bb0ec63d881db79aefbc976e4b2 # 2.30.1
with:
api-level: 28 # Android 9, Pie.
arch: x86_64
Expand All @@ -152,16 +162,16 @@ jobs:
- name: Upload Android test results
uses: actions/upload-artifact@v3
# Upload test results if they fail
if: matrix.os == 'macos-latest' && failure()
if: failure()
with:
name: android-test-results
retention-days: 7
path: |
emulator.log
/Users/runner/work/rustls-platform-verifier/rustls-platform-verifier/android/rustls-platform-verifier/build/outputs/androidTest-results/connected/test-result.pb
# TODO: Test iOS in CI too.

# TODO: Test iOS in CI too.
test-freebsd:
name: Test (FreeBSD)
runs-on: ubuntu-latest
Expand Down

0 comments on commit 8f94bfb

Please sign in to comment.