compilation_on_windows.yml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. # Copyright (C) 2019 Intel Corporation. All rights reserved.
  2. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  3. name: compilation on windows-latest
  4. on:
  5. # will be triggered on PR events
  6. pull_request:
  7. types:
  8. - opened
  9. - synchronize
  10. paths:
  11. - ".github/workflows/compilation_on_windows.yml"
  12. - "build-scripts/**"
  13. - "core/**"
  14. - "!core/deps/**"
  15. - "product-mini/**"
  16. - "samples/**"
  17. - "!samples/workload/**"
  18. - "tests/wamr-test-suites/**"
  19. - "wamr-compiler/**"
  20. - "wamr-sdk/**"
  21. # will be triggered on push events
  22. push:
  23. branches:
  24. - main
  25. - "dev/**"
  26. paths:
  27. - ".github/workflows/compilation_on_windows.yml"
  28. - "build-scripts/**"
  29. - "core/**"
  30. - "!core/deps/**"
  31. - "product-mini/**"
  32. - "samples/**"
  33. - "!samples/workload/**"
  34. - "tests/wamr-test-suites/**"
  35. - "wamr-compiler/**"
  36. - "wamr-sdk/**"
  37. # allow to be triggered manually
  38. workflow_dispatch:
  39. # Cancel any in-flight jobs for the same PR/branch so there's only one active
  40. # at a time
  41. concurrency:
  42. group: ${{ github.workflow }}-${{ github.ref }}
  43. cancel-in-progress: true
  44. jobs:
  45. build:
  46. runs-on: windows-latest
  47. strategy:
  48. matrix:
  49. build_options: [
  50. "-DWAMR_BUILD_AOT=1 -DWAMR_BUILD_INTERP=0",
  51. "-DWAMR_BUILD_AOT=0",
  52. "-DWAMR_BUILD_TAIL_CALL=1",
  53. "-DWAMR_BUILD_CUSTOM_NAME_SECTION=1",
  54. "-DWAMR_DISABLE_HW_BOUND_CHECK=1",
  55. "-DWAMR_BUILD_REF_TYPES=1",
  56. "-DWAMR_BUILD_SIMD=1",
  57. "-DWAMR_BUILD_DEBUG_INTERP=1",
  58. "-DWAMR_BUILD_LIB_PTHREAD=1",
  59. "-DWAMR_BUILD_LIB_WASI_THREADS=1"
  60. ]
  61. steps:
  62. - uses: actions/checkout@v3
  63. - name: clone uvwasi library
  64. run: |
  65. cd core/deps
  66. git clone https://github.com/nodejs/uvwasi.git
  67. - name: Build iwasm
  68. run: |
  69. cd product-mini/platforms/windows
  70. mkdir build && cd build
  71. cmake .. ${{ matrix.build_options }}
  72. cmake --build . --config Release --parallel 4