mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-25 17:11:59 +00:00
AppVeyor: Also build with clang from MSYS2
This commit is contained in:
parent
358c001d3c
commit
faa80bfb20
@ -7,20 +7,34 @@ clone_folder: C:\projects\cquery
|
||||
install:
|
||||
- git submodule update --init
|
||||
|
||||
environment:
|
||||
CLICOLOR_FORCE: 1
|
||||
matrix:
|
||||
- MSYSTEM: MINGW64
|
||||
- MSYSTEM: MSVC
|
||||
|
||||
build_script:
|
||||
- cd C:\projects\cquery
|
||||
- python waf configure --msvc_version="msvc 15.0"
|
||||
- python waf build
|
||||
- ps: |
|
||||
$dir = "cquery-${env:appveyor_build_version}-win64"
|
||||
cd C:\projects\cquery
|
||||
mkdir "${dir}\build\release\bin" -ea 0
|
||||
mkdir "${dir}\build\release\lib\LLVM-5.0.1-win64\lib\clang\5.0.1\"
|
||||
copy "build\release\bin\*" "${dir}\build\release\bin"
|
||||
copy -recurse "build\LLVM-5.0.1-win64\lib\clang\5.0.1\include" "${dir}\build\release\lib\LLVM-5.0.1-win64\lib\clang\5.0.1\"
|
||||
7z a -tzip "C:\projects\cquery\${dir}.zip" "${dir}"
|
||||
If ($Env:MSYSTEM -Eq "MSVC") {
|
||||
$dir = "cquery-${env:appveyor_build_version}-win64"
|
||||
cd C:\projects\cquery
|
||||
python waf configure --msvc_version="msvc 15.0"
|
||||
python waf build
|
||||
mkdir "${dir}\build\release\bin" -ea 0
|
||||
mkdir "${dir}\build\release\lib\LLVM-5.0.1-win64\lib\clang\5.0.1\"
|
||||
copy "build\release\bin\*" "${dir}\build\release\bin"
|
||||
copy -recurse "build\LLVM-5.0.1-win64\lib\clang\5.0.1\include" "${dir}\build\release\lib\LLVM-5.0.1-win64\lib\clang\5.0.1\"
|
||||
7z a -tzip "C:\projects\cquery\${dir}.zip" "${dir}"
|
||||
} Else {
|
||||
C:\msys64\usr\bin\bash -lc @'
|
||||
pacman -S --needed --noconfirm mingw-w64-x86_64-clang python
|
||||
cd /c/projects/cquery
|
||||
CXXFLAGS=-Wall /usr/bin/python waf configure build --use-system-clang 2>&1
|
||||
'@
|
||||
}
|
||||
- set PATH=%PATH%;C:\msys64\%MSYSTEM%\bin
|
||||
- build\release\bin\cquery --ci --log-all-to-stderr --test-unit
|
||||
- build\release\bin\cquery --ci --log-all-to-stderr --test-index
|
||||
- IF "%MSYSTEM%"=="MSVC" build\release\bin\cquery --ci --log-all-to-stderr --test-index
|
||||
|
||||
artifacts:
|
||||
- path: 'cquery-*.zip'
|
||||
|
Loading…
Reference in New Issue
Block a user