Skip to content

Commit

Permalink
ci Android
Browse files Browse the repository at this point in the history
  • Loading branch information
breautek committed Oct 6, 2024
1 parent b056e5b commit d417708
Show file tree
Hide file tree
Showing 7 changed files with 279 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/android-api-28.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
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
39 changes: 39 additions & 0 deletions .github/workflows/android-api-29.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: API 29

on:
push:
paths:
- 'android/**'
- '.github/workflows/android-api-29.yml'
pull_request:
paths:
- 'android/**'
- '.github/workflows/android-api-29.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:api29DebugAndroidTest
40 changes: 40 additions & 0 deletions .github/workflows/android-api-30.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: API 30

on:
push:
paths:
- 'android/**'
- '.github/workflows/android-api-30.yml'
pull_request:
paths:
- 'android/**'
- '.github/workflows/android-api-30.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:api30DebugAndroidTest
40 changes: 40 additions & 0 deletions .github/workflows/android-api-31.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: API 31

on:
push:
paths:
- 'android/**'
- '.github/workflows/android-api-31.yml'
pull_request:
paths:
- 'android/**'
- '.github/workflows/android-api-31.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:api31DebugAndroidTest
40 changes: 40 additions & 0 deletions .github/workflows/android-api-32.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: API 32

on:
push:
paths:
- 'android/**'
- '.github/workflows/android-api-32.yml'
pull_request:
paths:
- 'android/**'
- '.github/workflows/android-api-32.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:api32DebugAndroidTest
40 changes: 40 additions & 0 deletions .github/workflows/android-api-33.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: API 33

on:
push:
paths:
- 'android/**'
- '.github/workflows/android-api-33.yml'
pull_request:
paths:
- 'android/**'
- '.github/workflows/android-api-33.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:api33DebugAndroidTest
40 changes: 40 additions & 0 deletions .github/workflows/android-api-34.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: API 34

on:
push:
paths:
- 'android/**'
- '.github/workflows/android-api-34.yml'
pull_request:
paths:
- 'android/**'
- '.github/workflows/android-api-34.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:api34DebugAndroidTest

0 comments on commit d417708

Please sign in to comment.