Add LLVM setup step in CI workflow #65
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: ProXPL CI | |
| on: | |
| push: | |
| branches: [ main, develop ] | |
| pull_request: | |
| branches: [ main, develop ] | |
| env: | |
| BUILD_TYPE: Release | |
| jobs: | |
| build: | |
| name: Build on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| steps: | |
| - name: Checkout source | |
| uses: actions/checkout@v4 | |
| # --- NEW STEP ADDED: Install LLVM --- | |
| # Ye step teeno OS (Win/Mac/Linux) par LLVM install karega | |
| # taaki CMake ko "LLVMConfig.cmake" mil sake. | |
| - name: Setup LLVM | |
| uses: wang-xinyu/setup-llvm@v1 | |
| with: | |
| version: '17' # Aap apni zaroorat ke hisaab se version change kar sakte hain (16, 17, 18) | |
| - name: Setup CMake | |
| uses: lukka/get-cmake@latest | |
| - name: Configure | |
| shell: bash | |
| # Humne LLVM_DIR add kiya hai taaki CMake ko pata chale LLVM kahan installed hai | |
| run: | | |
| cmake -S . -B build \ | |
| -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} \ | |
| -DBUILD_TESTS=OFF \ | |
| -DBUILD_BENCH=OFF \ | |
| -DLLVM_DIR="${{ env.LLVM_PATH }}/lib/cmake/llvm" | |
| - name: Build (verbose) | |
| shell: bash | |
| run: cmake --build build --verbose --config ${{ env.BUILD_TYPE }} |