windows.yml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. # Copyright (C) 2019 Intel Corporation. All rights reserved.
  2. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  3. name: Windows
  4. # Controls when the action will run. Triggers the workflow on push or pull request
  5. # events but only for the main branch
  6. on:
  7. push:
  8. branches: [ main ]
  9. pull_request:
  10. branches: [ main ]
  11. jobs:
  12. build:
  13. runs-on: ${{ matrix.os }}
  14. strategy:
  15. matrix:
  16. os: [windows-latest]
  17. steps:
  18. - uses: actions/checkout@v2
  19. - name: clone uvwasi library
  20. run: |
  21. cd core/deps
  22. git clone https://github.com/nodejs/uvwasi.git
  23. - name: Build iwasm [default]
  24. run: |
  25. cd product-mini/platforms/windows
  26. mkdir build && cd build
  27. cmake ..
  28. cmake --build . --config Release
  29. cd .. && rm -force -r build
  30. - name: Build iwasm [aot only]
  31. run: |
  32. cd product-mini/platforms/windows
  33. mkdir build && cd build
  34. cmake .. -DWAMR_BUILD_AOT=1 -DWAMR_BUILD_INTERP=0
  35. cmake --build . --config Release
  36. cd .. && rm -force -r build
  37. - name: Build iwasm [interp only]
  38. run: |
  39. cd product-mini/platforms/windows
  40. mkdir build && cd build
  41. cmake .. -DWAMR_BUILD_AOT=0
  42. cmake --build . --config Release
  43. cd .. && rm -force -r build
  44. - name: Build iwasm [tail call]
  45. run: |
  46. cd product-mini/platforms/windows
  47. mkdir build && cd build
  48. cmake .. -DWAMR_BUILD_TAIL_CALL=1
  49. cmake --build . --config Release
  50. cd .. && rm -force -r build
  51. - name: Build iwasm [custom name section]
  52. run: |
  53. cd product-mini/platforms/windows
  54. mkdir build && cd build
  55. cmake .. -DWAMR_BUILD_CUSTOM_NAME_SECTION=1
  56. cmake --build . --config Release
  57. cd .. && rm -force -r build
  58. - name: Build iwasm [disable hardware boundary check]
  59. run: |
  60. cd product-mini/platforms/windows
  61. mkdir build && cd build
  62. cmake .. -DWAMR_DISABLE_HW_BOUND_CHECK=1
  63. cmake --build . --config Release
  64. cd .. && rm -force -r build
  65. - name: Build iwasm [reference types]
  66. run: |
  67. cd product-mini/platforms/windows
  68. mkdir build && cd build
  69. cmake .. -DWAMR_BUILD_REF_TYPES=1
  70. cmake --build . --config Release
  71. cd .. && rm -force -r build
  72. - name: Build iwasm [128-bit SIMD]
  73. run: |
  74. cd product-mini/platforms/windows
  75. mkdir build && cd build
  76. cmake .. -DWAMR_BUILD_SIMD=1
  77. cmake --build . --config Release
  78. cd .. && rm -force -r build