Skip to content

Commit 621231a

Browse files
Create CI script for android platform (#591)
1 parent 8f902fa commit 621231a

File tree

1 file changed

+91
-0
lines changed

1 file changed

+91
-0
lines changed

.github/workflows/android.yml

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: android
4+
5+
# Controls when the action will run.
6+
on:
7+
# Triggers the workflow on push or pull request events but only for the master branch
8+
push:
9+
branches: [ main ]
10+
pull_request:
11+
branches: [ main ]
12+
13+
# Allows you to run this workflow manually from the Actions tab
14+
workflow_dispatch:
15+
16+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
17+
jobs:
18+
# This workflow contains a single job called "build"
19+
build:
20+
# The type of runner that the job will run on
21+
runs-on: ubuntu-latest
22+
23+
# Steps represent a sequence of tasks that will be executed as part of the job
24+
steps:
25+
26+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
27+
- uses: actions/checkout@v2
28+
29+
- name: Build iwasm [default]
30+
run: |
31+
cd product-mini/platforms/android
32+
mkdir build && cd build
33+
cmake ..
34+
make
35+
cd .. && rm -rf build
36+
- name: Build iwasm [Classic interp]
37+
run: |
38+
cd product-mini/platforms/android
39+
mkdir build && cd build
40+
cmake .. -DWAMR_BUILD_FAST_INTERP=0
41+
make
42+
cd .. && rm -rf build
43+
- name: Build iwasm [Multi module]
44+
run: |
45+
cd product-mini/platforms/android
46+
mkdir build && cd build
47+
cmake .. -DWAMR_BUILD_MULTI_MODULE=1
48+
make
49+
cd .. && rm -rf build
50+
- name: Build iwasm [lib-pthread]
51+
run: |
52+
cd product-mini/platforms/android
53+
mkdir build && cd build
54+
cmake .. -DWAMR_BUILD_LIB_PTHREAD=1
55+
make
56+
cd .. && rm -rf build
57+
- name: Build iwasm [aot only]
58+
run: |
59+
cd product-mini/platforms/android
60+
mkdir build && cd build
61+
cmake .. -DWAMR_BUILD_AOT=1 -DWAMR_BUILD_INTERP=0
62+
make
63+
cd .. && rm -rf build
64+
- name: Build iwasm [interp only]
65+
run: |
66+
cd product-mini/platforms/android
67+
mkdir build && cd build
68+
cmake .. -DWAMR_BUILD_AOT=0
69+
make
70+
cd .. && rm -rf build
71+
- name: Build iwasm [memory profiling]
72+
run: |
73+
cd product-mini/platforms/android
74+
mkdir build && cd build
75+
cmake .. -DWAMR_BUILD_MEMORY_PROFILING=1
76+
make
77+
cd .. && rm -rf build
78+
- name: Build iwasm [tail call]
79+
run: |
80+
cd product-mini/platforms/android
81+
mkdir build && cd build
82+
cmake .. -DWAMR_BUILD_TAIL_CALL=1
83+
make
84+
cd .. && rm -rf build
85+
- name: Build iwasm [custom name section]
86+
run: |
87+
cd product-mini/platforms/android
88+
mkdir build && cd build
89+
cmake .. -DWAMR_BUILD_CUSTOM_NAME_SECTION=1
90+
make
91+
cd .. && rm -rf build

0 commit comments

Comments
 (0)