Skip to content

build-and-test-windows #593

build-and-test-windows

build-and-test-windows #593

Workflow file for this run

name: build-and-test-windows
on: ["push", "pull_request"]
jobs:
build-and-test:
name: build and test on windows
runs-on: windows-latest
env:
LLVM_SYS_120_PREFIX: "C:/LLVM"
KCLVM_CLANG: "C:/LLVM/bin/clang.exe"
steps:
- name: Git checkout
uses: actions/checkout@v2
with:
submodules: "true"
- uses: ilammy/msvc-dev-cmd@v1
- run: clang --version
- run: cargo --version
# Install LLVM-12
- run: Invoke-WebRequest -Uri https://github.com/KusionStack/llvm-package-windows/releases/download/v12.0.1/LLVM-12.0.1-win64.7z -OutFile C:/LLVM-12.0.1-win64.7z
- run: Get-FileHash -Algorithm MD5 C:/LLVM-12.0.1-win64.7z # md5: 3fcf77f82c6c3ee650711439b20aebe5
- run: 7z x -y C:/LLVM-12.0.1-win64.7z -o"C:/LLVM"
- run: Remove-Item C:/LLVM-12.0.1-win64.7z
- run: echo "C:/LLVM/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- run: .\build_win.bat
- uses: actions/upload-artifact@v3
with:
name: kclvm-windows
path: scripts/build-windows/_output/kclvm-windows