android.yml 3.6 KB

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