build_llvm_libraries.yml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Copyright (C) 2019 Intel Corporation. All rights reserved.
  2. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  3. name: Reusable workflow-build_llvm_libraries
  4. on:
  5. workflow_call:
  6. inputs:
  7. runs-on:
  8. required: true
  9. type: string
  10. jobs:
  11. build_llvm_libraries:
  12. runs-on: ${{ matrix.os }}
  13. strategy:
  14. matrix:
  15. os: ${{ fromJson(inputs.runs-on) }}
  16. steps:
  17. - name: checkout
  18. uses: actions/checkout@v3
  19. - name: Cache LLVM libraries
  20. id: cache_llvm
  21. uses: actions/cache@v3
  22. with:
  23. path: |
  24. ./core/deps/llvm/build/bin
  25. ./core/deps/llvm/build/include
  26. ./core/deps/llvm/build/lib
  27. ./core/deps/llvm/build/libexec
  28. ./core/deps/llvm/build/share
  29. key: ${{ matrix.os }}-build-llvm_libraries_ex
  30. - name: Build llvm
  31. id: build_llvm
  32. if: ${{ steps.cache_llvm.outputs.cache-hit != 'true' }}
  33. run: /usr/bin/env python3 ./build_llvm.py --arch X86 WebAssembly
  34. working-directory: build-scripts