CI: Install LLVM

This commit is contained in:
Luke Street 2021-03-26 19:55:49 -04:00
parent 0f4e76a439
commit b578bd9973
1 changed files with 10 additions and 1 deletions

View File

@ -24,7 +24,7 @@ jobs:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get -y install cmake ninja-build qt5-default libclang-dev
sudo apt-get -y install cmake ninja-build qt5-default libclang-dev llvm-dev
- name: Create build directory
run: cmake -E make_directory ${{github.workspace}}/build
@ -104,6 +104,7 @@ jobs:
name: Build Windows (MSVC x86_64)
runs-on: windows-2019
env:
LLVM_VERSION: 11.0.1
Qt_VERSION: 5.15.2
steps:
@ -125,6 +126,14 @@ jobs:
version: ${{env.Qt_VERSION}}
cached: ${{steps.cache-qt.outputs.cache-hit}}
- name: Install LLVM
run: |
$TempDir = "$env:RUNNER_WORKSPACE\temp"
$Filename = "LLVM-$env:LLVM_VERSION-win64.exe"
New-Item -Path "$TempDir" -ItemType Directory -ea 0
(New-Object Net.WebClient).DownloadFile("https://github.com/llvm/llvm-project/releases/download/llvmorg-$env:LLVM_VERSION/$Filename", "$TempDir\$Filename")
Start-Process "$TempDir\$Filename" -ArgumentList "/S" -Wait
- name: Install dependencies
run: choco install ninja