-
Notifications
You must be signed in to change notification settings - Fork 3
55 lines (46 loc) · 1.2 KB
/
run_tests.yml
File metadata and controls
55 lines (46 loc) · 1.2 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Run Tests
on:
push:
branches:
- master
pull_request:
workflow_call:
jobs:
run-tests:
name: "Test (${{ matrix.ANDROID_ABI }})"
runs-on: ubuntu-latest
strategy:
matrix:
ANDROID_ABI: ["armeabi-v7a", "arm64-v8a", "x86", "x86_64"]
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: true
- name: Run setup-libraries composite action
uses: ./.github/actions/setup-libraries
with:
libass-cmake-path: ${{ github.workspace }}
- name: Create build directory
run: mkdir build
- name: Configure CMake
working-directory: build
run: |
cmake \
-DANDROID_ABI=${{ matrix.ANDROID_ABI }} \
-DANDROID_PLATFORM=android-21 \
-DANDROID_NDK=${ANDROID_NDK_ROOT} \
-DCMAKE_TOOLCHAIN_FILE=${ANDROID_NDK_ROOT}/build/cmake/android.toolchain.cmake \
-G Ninja \
..
- name: Build
working-directory: build
run: cmake --build .
- uses: actions/upload-artifact@v5
with:
name: build-${{ matrix.ANDROID_ABI }}
path: |
build/etc/
build/include/
build/lib/
build/share/