wamr_wasi_extensions.yml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # Copyright (C) 2019 Intel Corporation. All rights reserved.
  2. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  3. name: wamr_wasi_extensions
  4. on:
  5. pull_request:
  6. types:
  7. - opened
  8. - synchronize
  9. paths:
  10. - ".github/workflows/wamr_wasi_extensions.yml"
  11. - "wamr_wasi_extensios/**"
  12. - "core/iwasm/libraries/wasi-nn/include/**"
  13. - "core/iwasm/libraries/lib-socket/**"
  14. # allow to be triggered manually
  15. workflow_dispatch:
  16. # Cancel any in-flight jobs for the same PR/branch so there's only one active
  17. # at a time
  18. concurrency:
  19. group: ${{ github.workflow }}-${{ github.ref }}
  20. cancel-in-progress: true
  21. jobs:
  22. build_wamr_wasi_extensions:
  23. runs-on: ${{ matrix.os }}
  24. strategy:
  25. matrix:
  26. os: [ubuntu-22.04, macos-15-intel, macos-15]
  27. steps:
  28. - name: checkout
  29. uses: actions/checkout@v6.0.1
  30. - name: install-wasi-sdk-wabt
  31. uses: ./.github/actions/install-wasi-sdk-wabt
  32. with:
  33. os: ${{ matrix.os }}
  34. - name: Build wamr-wasi-extensions
  35. run: |
  36. mkdir dist
  37. ./build_libs.sh $(pwd)/dist/wamr-wasi-extensions
  38. working-directory: wamr-wasi-extensions
  39. - name: Build wamr-wasi-extensions samples
  40. run: |
  41. ./build_samples.sh $(pwd)/dist/wamr-wasi-extensions
  42. working-directory: wamr-wasi-extensions
  43. #CLARIFY: Require to upload artifact on ARM macOS?
  44. - name: Upload artifacts
  45. if: matrix.os == 'macos-15'
  46. uses: actions/upload-artifact@v6.0.0
  47. with:
  48. name: wamr-wasi-extensions
  49. path: wamr-wasi-extensions/dist
  50. retention-days: 10