wamr_wasi_extensions.yml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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-13, macos-14]
  27. steps:
  28. - name: checkout
  29. uses: actions/checkout@v5
  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. - name: Upload artifacts
  44. if: matrix.os == 'macos-14'
  45. uses: actions/upload-artifact@v4
  46. with:
  47. name: wamr-wasi-extensions
  48. path: wamr-wasi-extensions/dist
  49. retention-days: 10