android.yml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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
  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
  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
  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
  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
  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
  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
  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
  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
  84. cd .. && rm -rf build