This repository was archived by the owner on Nov 27, 2025. It is now read-only.
Linux precommit #7
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Linux precommit" | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| pull_request: | |
| workflow_dispatch: | |
| branches: [ "npu/release/18.x" ] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} | |
| jobs: | |
| Build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| shell: bash | |
| env: | |
| CMAKE_BUILD_TYPE: 'Debug' | |
| GITHUB_WORKSPACE: /__w/npu-plugin-llvm/npu-plugin-llvm | |
| NPU_PLUGIN_LLVM_REPO: /__w/npu-plugin-llvm/npu-plugin-llvm/npu-plugin-llvm | |
| NPU_PLUGIN_LLVM_PROJECT: /__w/npu-plugin-llvm/npu-plugin-llvm/npu-plugin-llvm/llvm | |
| NPU_PLUGIN_LLVM_PROJECT_BUILD_DIR: /__w/npu-plugin-llvm/npu-plugin-llvm/npu-plugin-llvm/build | |
| NPU_PLUGIN_LLVM_PROJECT_INSTALL_DIR: /__w/npu-plugin-llvm/npu-plugin-llvm/npu-plugin-llvm/install | |
| steps: | |
| - name: Clone NPU Plugin LLVM sources | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| submodules: 'true' | |
| - name: Print system info | |
| if: runner.os == 'Linux' | |
| shell: bash | |
| run: | | |
| # Install pre-requisites for Fedora | |
| if [[ -e /etc/fedora-release ]]; then | |
| yum update -y -q && yum install -y -q procps | |
| fi | |
| echo "System: ${{ runner.os }}" | |
| echo "System Architecture: ${{ runner.arch }}" | |
| echo "CPU Info: "; lscpu | |
| echo "RAM Info: "; free -h --si | |
| echo "MEMORY Info: "; df -h | |
| - name: Configure CMake | |
| run: | | |
| ls /__w/ | |
| ls /__w/npu-plugin-llvm | |
| ls /__w/npu-plugin-llvm/npu-plugin-llvm | |
| ls ${GITHUB_WORKSPACE} | |
| cmake \ | |
| -B ${NPU_PLUGIN_LLVM_PROJECT_BUILD_DIR} \ | |
| -S ${NPU_PLUGIN_LLVM_PROJECT} \ | |
| -DLLVM_ENABLE_PROJECTS=mlir \ | |
| -DCMAKE_INSTALL_PREFIX=${NPU_PLUGIN_LLVM_PROJECT_INSTALL_DIR} \ | |
| -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} | |
| - name: Build | |
| run: cmake --build ${NPU_PLUGIN_LLVM_PROJECT_BUILD_DIR} --config ${CMAKE_BUILD_TYPE} |