blob: bd02a3b998e4b9cd22bbe219e384d4a3ce4ebb37 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# GitHub Actions workflow to run tests on Android.
name: "Android"
on: [push, pull_request]
concurrency:
group: "${{ github.workflow }}-${{ github.event.number || github.ref }}"
cancel-in-progress: true
jobs:
test:
name: "Test ${{ matrix.name }}"
runs-on: ubuntu-24.04
permissions:
contents: read
strategy:
fail-fast: false
matrix:
include:
- name: "Minimum API 26"
api-level: 26
- name: "Latest API"
api-level: latest
steps:
- name: "Checkout repository"
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: "Install build dependencies"
run: |
sudo apt-get update
sudo apt-get install -y cmake ninja-build
- name: "Run CI script"
run: |
ANDROID_NDK_HOME="$ANDROID_NDK_LATEST_HOME" ./scripts/test
env:
ARCH: "android"
ANDROID_API_LEVEL: "${{ matrix.api-level }}"
|