mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-08-03 05:32:04 -07:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
5b42999a3d | ||
|
8887250860 |
22
appveyor.yml
22
appveyor.yml
@@ -1,22 +1,3 @@
|
|||||||
environment:
|
|
||||||
matrix:
|
|
||||||
- TARGET: x86_64-pc-windows-msvc
|
|
||||||
- TARGET: i686-pc-windows-gnu
|
|
||||||
install:
|
|
||||||
- ps: Start-FileDownload "https://static.rust-lang.org/dist/rust-nightly-${env:TARGET}.exe"
|
|
||||||
- rust-nightly-%TARGET%.exe /VERYSILENT /NORESTART /DIR="C:\Program Files (x86)\Rust"
|
|
||||||
- SET PATH=%PATH%;C:\Program Files (x86)\Rust\bin
|
|
||||||
- SET PATH=%PATH%;C:\MinGW\bin
|
|
||||||
- rustc -V
|
|
||||||
- cargo -V
|
|
||||||
|
|
||||||
build: false
|
|
||||||
|
|
||||||
test_script:
|
|
||||||
- cargo build --verbose
|
|
||||||
- cargo test --verbose
|
|
||||||
|
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
global:
|
global:
|
||||||
PROJECT_NAME: xrep
|
PROJECT_NAME: xrep
|
||||||
@@ -56,7 +37,8 @@ test_script:
|
|||||||
|
|
||||||
before_deploy:
|
before_deploy:
|
||||||
# Generate artifacts for release
|
# Generate artifacts for release
|
||||||
- RUSTFLAGS="-C target-feature=+ssse3" cargo build --release --features simd-accel
|
- SET RUSTFLAGS="-C target-feature=+ssse3"
|
||||||
|
- cargo build --release --features simd-accel
|
||||||
- mkdir staging
|
- mkdir staging
|
||||||
# TODO update this part to copy the artifacts that make sense for your project
|
# TODO update this part to copy the artifacts that make sense for your project
|
||||||
- copy target\release\xrep.exe staging
|
- copy target\release\xrep.exe staging
|
||||||
|
@@ -37,6 +37,6 @@ pub fn stdout_is_atty() -> bool {
|
|||||||
unsafe {
|
unsafe {
|
||||||
let fd = winapi::winbase::STD_OUTPUT_HANDLE;
|
let fd = winapi::winbase::STD_OUTPUT_HANDLE;
|
||||||
let mut out = 0;
|
let mut out = 0;
|
||||||
kernel32::GetConsoleMode(handle, &mut out) != 0
|
kernel32::GetConsoleMode(kernel32::GetStdHandle(fd), &mut out) != 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user