-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (54 loc) · 1.66 KB
/
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
50
51
52
53
54
55
56
57
name: android
on:
push:
branches:
- 'master'
tags:
- 'v*'
pull_request:
branches:
- '*'
jobs:
dockcross-android:
name: ${{ matrix.name }}
runs-on: ubuntu-20.04
strategy:
matrix:
include:
- name: android-arm-2020
image: android-arm
tag: 20201222-0217db3
- name: android-arm64-2020
image: android-arm64
tag: 20201222-0217db3
- name: android-x86-2021
image: android-x86
tag: 20210127-0c1f2c9
- name: android-x86_64-2021
image: android-x86_64
tag: 20210127-0c1f2c9
- name: android-arm-latest
image: android-arm
tag: latest
- name: android-arm64-latest
image: android-arm64
tag: latest
- name: android-x86-latest
image: android-x86
tag: latest
- name: android-x86_64-latest
image: android-x86_64
tag: latest
steps:
- uses: actions/checkout@v2
- name: setup dockcross
run: docker run --rm dockcross/${{ matrix.image }}:${{ matrix.tag }} > ./dockcross-${{ matrix.name }}; chmod +x ./dockcross-${{ matrix.name }}
- uses: actions/cache@v2
id: cache
with:
path: ./build/${{ matrix.name }}
key: ${{ github.job }}-${{ matrix.name }}-${{ hashFiles('./**') }}
- name: setup doctest
run: bash scripts/download_doctest_header.sh -d include/
- name: build
run: ./dockcross-${{ matrix.name }} bash -c 'mkdir -p build/${{ matrix.name }} && cd build/${{ matrix.name }}/ && cmake ../.. && make -j2'