-
Notifications
You must be signed in to change notification settings - Fork 3
49 lines (45 loc) · 1.08 KB
/
build-android.yml
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
name: Build Android
on:
workflow_dispatch:
workflow_call:
push:
branches:
- 'master'
tags:
- '*'
jobs:
build:
runs-on: ${{ matrix.os }}
timeout-minutes: 60
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
MODE: release
TARGET_OS: android
TARGET_ARCH: ${{ matrix.arch }}
TARGET_CPUREV: ${{ matrix.cpurev }}
JOBS: 4
strategy:
fail-fast: false
matrix:
os: [windows-2019,windows-2022,macos-13,macos-14]
arch: [x64,x86,arm64,arm]
cpurev: [default]
steps:
# Checkout
- name: Checkout
uses: actions/checkout@v4
# Clang Version
- name: Clang Version
run: clang --version
# Build
- name: Build
run: make -j${{ env.JOBS }}
# Test
# Note: x64 and x86 require VT-x on Windows.
# But it is disabled on Github Hyper-V runners.
- name: Test
if: |
(matrix.os == 'macos-13' && matrix.arch != 'arm64' && matrix.arch != 'arm')
env:
ANDROID_EMULATOR_WAIT_TIME_BEFORE_KILL: 10
run: make test