windows.yml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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: Build iwasm [default]
  20. run: |
  21. cd product-mini/platforms/windows
  22. mkdir build && cd build
  23. cmake ..
  24. cmake --build . --config Release
  25. cd .. && rm -r build
  26. - name: Build iwasm [aot only]
  27. run: |
  28. cd product-mini/platforms/windows
  29. mkdir build && cd build
  30. cmake .. -DWAMR_BUILD_AOT=1 -DWAMR_BUILD_INTERP=0
  31. cmake --build . --config Release
  32. cd .. && rm -r build
  33. - name: Build iwasm [interp only]
  34. run: |
  35. cd product-mini/platforms/windows
  36. mkdir build && cd build
  37. cmake .. -DWAMR_BUILD_AOT=0
  38. cmake --build . --config Release
  39. cd .. && rm -r build
  40. - name: Build iwasm [tail call]
  41. run: |
  42. cd product-mini/platforms/windows
  43. mkdir build && cd build
  44. cmake .. -DWAMR_BUILD_TAIL_CALL=1
  45. cmake --build . --config Release
  46. cd .. && rm -r build
  47. - name: Build iwasm [custom name section]
  48. run: |
  49. cd product-mini/platforms/windows
  50. mkdir build && cd build
  51. cmake .. -DWAMR_BUILD_CUSTOM_NAME_SECTION=1
  52. cmake --build . --config Release
  53. cd .. && rm -r build