fix: windows build and check ci check for windows (#2819)

This commit is contained in:
Ning Sun
2023-11-27 11:42:44 +08:00
committed by GitHub
parent b3edbef1f3
commit bd9c2f2666
2 changed files with 9 additions and 3 deletions

View File

@@ -42,7 +42,10 @@ jobs:
check:
name: Check
if: github.event.pull_request.draft == false
runs-on: ubuntu-20.04
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ windows-latest-8-cores, ubuntu-20.04 ]
timeout-minutes: 60
steps:
- uses: actions/checkout@v3

View File

@@ -339,6 +339,7 @@ pub enum Error {
source: crate::http::pprof::nix::Error,
},
#[cfg(not(windows))]
#[snafu(display("Failed to update jemalloc metrics"))]
UpdateJemallocMetrics {
#[snafu(source)]
@@ -412,8 +413,10 @@ impl ErrorExt for Error {
| TcpIncoming { .. }
| CatalogError { .. }
| GrpcReflectionService { .. }
| BuildHttpResponse { .. }
| UpdateJemallocMetrics { .. } => StatusCode::Internal,
| BuildHttpResponse { .. } => StatusCode::Internal,
#[cfg(not(windows))]
UpdateJemallocMetrics { .. } => StatusCode::Internal,
CollectRecordbatch { .. } => StatusCode::EngineExecuteQuery,