Skip to content

Commit bf6253e

Browse files
restrict matrix and fix include
1 parent e4fecae commit bf6253e

File tree

4 files changed

+41
-4
lines changed

4 files changed

+41
-4
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ jobs:
1212
strategy:
1313
matrix:
1414
os: [macos-latest, windows-2019]
15-
node: [16.20.1, 18.x, 20.x, 22.x]
15+
# node: [16.20.1, 18.x, 20.x, 22.x]
16+
node: [16.20.1]
1617
fail-fast: false
1718

1819
runs-on: ${{ matrix.os }}
@@ -42,7 +43,8 @@ jobs:
4243
strategy:
4344
matrix:
4445
linux_arch: [s390x, arm64, amd64]
45-
node: [16.x, 18.x, 20.x, 22.x]
46+
# node: [16.x, 18.x, 20.x, 22.x]
47+
node: [16.x]
4648
fail-fast: false
4749
steps:
4850
- uses: actions/checkout@v4
@@ -82,7 +84,8 @@ jobs:
8284
strategy:
8385
matrix:
8486
linux_arch: [arm64, amd64]
85-
node: [16.20.1, 18.x, 20.x, 22.x]
87+
# node: [16.20.1, 18.x, 20.x, 22.x]
88+
node: [16.20.1]
8689
fail-fast: false
8790

8891
steps:

addon/compression.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef MONGODB_ZSTD_COMPRESSION
22
#define MONGODB_ZSTD_COMPRESSION
33

4-
#include <exception>
4+
#include <stdexcept>
55
#include <vector>
66

77
#include "compression_worker.h"

docker.sh

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# # docker buildx create --name builder --bootstrap --use
2+
# docker --debug buildx build --progress=plain --no-cache \
3+
# --platform linux/amd64 --output type=local,dest=./prebuilds,platform-split=false \
4+
# --build-arg="P=amd64" \
5+
# -f ./Dockerfile.musl \
6+
# .
7+
8+
musl() {
9+
docker --debug buildx build --load --progress=plain --no-cache \
10+
--platform linux/amd64 --output=type=docker \
11+
--build-arg="PLATFORM=amd64" \
12+
--build-arg="NODE_VERSION=16.20.1" \
13+
--build-arg="RUN_TEST=true" \
14+
-f ./.github/docker/Dockerfile.musl -t musl-zstd-base \
15+
.
16+
}
17+
18+
19+
glibc() {
20+
docker buildx build --load --progress=plain \
21+
--platform linux/amd64 \
22+
--build-arg="NODE_ARCH=x64" \
23+
--build-arg="RUN_TEST=true" \
24+
-f ./.github/docker/Dockerfile.glibc \
25+
.
26+
}
27+
28+
musl

test.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
int main() {
3+
int x = 5;
4+
int& y = x;
5+
return 0;
6+
}

0 commit comments

Comments
 (0)