Skip to content

ci Android

ci Android #1

name: API 28
on:
push:
paths:
- 'android/**'
- '.github/workflows/android-api-28.yml'
pull_request:
paths:
- 'android/**'
- '.github/workflows/android-api-28.yml'
jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
submodules: True
- 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: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Accept Android SDK Licenses
run: yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses
- name: Build with Gradle
run: ./gradlew :fuse:build
- name: Run Tests
run: ./gradlew :fuse:api28DebugAndroidTest