Skip to content

Commit 155cc96

Browse files
authored
Merge branch 'main' into dependabot/github_actions/mongodb-labs/drivers-github-tools-3
2 parents 871495a + 71541bf commit 155cc96

27 files changed

+1238
-536
lines changed

.eslintrc.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,15 @@
3838
"prettier/prettier": "error",
3939
"no-console": "error",
4040
"valid-typeof": "error",
41+
"@typescript-eslint/no-unused-vars": [
42+
"error",
43+
{
44+
"argsIgnorePattern": "^_",
45+
"caughtErrorsIgnorePattern": "^_",
46+
"destructuredArrayIgnorePattern": "^_",
47+
"varsIgnorePattern": "^_"
48+
}
49+
],
4150
"eqeqeq": [
4251
"error",
4352
"always",

.github/docker/Dockerfile.glibc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:noble AS build
1+
FROM redhat/ubi8 AS build
22

33
ARG NODE_VERSION=20.19.0
44
# Possible values: s390x, arm64, x64
@@ -10,7 +10,7 @@ ENV PATH=$PATH:/nodejs/bin
1010
WORKDIR /mongodb-client-encryption
1111
COPY . .
1212

13-
RUN apt-get -qq update && apt-get -qq install -y python3 build-essential git && ldd --version
13+
RUN yum install -y python39 git make gcc-c++
1414

1515
RUN npm run install:libmongocrypt
1616

.github/scripts/libmongocrypt.mjs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import util from 'node:util';
44
import process from 'node:process';
5-
import fs from 'node:fs/promises';
5+
import fs, { readFile } from 'node:fs/promises';
66
import child_process from 'node:child_process';
77
import events from 'node:events';
88
import path from 'node:path';
@@ -189,9 +189,17 @@ async function buildBindings(args, pkg) {
189189
await run('npm', ['run', 'prepare']);
190190

191191
if (process.platform === 'darwin' && process.arch === 'arm64') {
192+
// @ts-ignore
193+
const {
194+
binary: {
195+
napi_versions: [
196+
napiVersion
197+
]
198+
}
199+
} = JSON.parse(await readFile(resolveRoot('package.json'), 'utf-8'));
192200
// The "arm64" build is actually a universal binary
193-
const armTar = `mongodb-client-encryption-v${pkg.version}-napi-v4-darwin-arm64.tar.gz`;
194-
const x64Tar = `mongodb-client-encryption-v${pkg.version}-napi-v4-darwin-x64.tar.gz`;
201+
const armTar = `mongodb-client-encryption-v${pkg.version}-napi-v${napiVersion}-darwin-arm64.tar.gz`;
202+
const x64Tar = `mongodb-client-encryption-v${pkg.version}-napi-v${napiVersion}-darwin-x64.tar.gz`;
195203
await fs.copyFile(resolveRoot('prebuilds', armTar), resolveRoot('prebuilds', x64Tar));
196204
}
197205
}

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
os: [macos-latest, windows-2022]
1919
runs-on: ${{ matrix.os }}
2020
steps:
21-
- uses: actions/checkout@v4
21+
- uses: actions/checkout@v5
2222

2323
- name: Build ${{ matrix.os }} Prebuild
2424
run: node .github/scripts/libmongocrypt.mjs ${{ runner.os == 'Windows' && '--build' || '' }}
@@ -42,7 +42,7 @@ jobs:
4242
matrix:
4343
linux_arch: [s390x, arm64, amd64]
4444
steps:
45-
- uses: actions/checkout@v4
45+
- uses: actions/checkout@v5
4646

4747
- name: Set up QEMU
4848
uses: docker/setup-qemu-action@v3
@@ -77,7 +77,7 @@ jobs:
7777
linux_arch: [amd64, arm64]
7878
fail-fast: false
7979
steps:
80-
- uses: actions/checkout@v4
80+
- uses: actions/checkout@v5
8181

8282
- name: Set up QEMU
8383
uses: docker/setup-qemu-action@v3

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
sourceDirectory: "./src"
3535
steps:
3636
- name: Checkout repository
37-
uses: actions/checkout@v4
37+
uses: actions/checkout@v5
3838

3939
# Initializes the CodeQL tools for scanning.
4040
- name: Initialize CodeQL

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
lint-target: ["c++", "typescript"]
1717

1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@v5
2020

2121
- name: Use Node.js LTS
22-
uses: actions/setup-node@v4
22+
uses: actions/setup-node@v5
2323
with:
2424
node-version: 'lts/*'
2525
cache: 'npm'

.github/workflows/release_6.1.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
environment: release
3737
runs-on: ubuntu-latest
3838
steps:
39-
- uses: actions/checkout@v4
39+
- uses: actions/checkout@v5
4040

4141
- name: Install Node and dependencies
4242
uses: mongodb-labs/drivers-github-tools/node/setup@v3
@@ -93,14 +93,14 @@ jobs:
9393
environment: release
9494
runs-on: ubuntu-latest
9595
steps:
96-
- uses: actions/checkout@v4
96+
- uses: actions/checkout@v5
9797

9898
- name: Install Node and dependencies
9999
uses: mongodb-labs/drivers-github-tools/node/setup@v3
100100
with:
101101
ignore_install_scripts: true
102102

103-
- run: npm publish --provenance
103+
- run: npm publish --provenance --tag alpha
104104
if: ${{ needs.release_please.outputs.release_created }}
105105
env:
106106
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/test.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ jobs:
1616
fail-fast: false
1717
runs-on: ${{ matrix.os }}
1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@v5
2020

21-
- uses: actions/setup-node@v4
21+
- uses: actions/setup-node@v5
2222
with:
2323
node-version: ${{ matrix.node }}
2424
cache: "npm"
@@ -40,9 +40,9 @@ jobs:
4040
node: [20.19.0, 22.x]
4141
fail-fast: false
4242
steps:
43-
- uses: actions/checkout@v4
43+
- uses: actions/checkout@v5
4444

45-
- uses: actions/setup-node@v4
45+
- uses: actions/setup-node@v5
4646
with:
4747
node-version: ${{ matrix.node }}
4848

@@ -78,9 +78,9 @@ jobs:
7878
node: [20.19.0, 22.x]
7979
fail-fast: false
8080
steps:
81-
- uses: actions/checkout@v4
81+
- uses: actions/checkout@v5
8282

83-
- uses: actions/setup-node@v4
83+
- uses: actions/setup-node@v5
8484
with:
8585
node-version: ${{ matrix.node }}
8686

.github/workflows/webpack.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@v5
1515

1616
- name: Use Node.js LTS
17-
uses: actions/setup-node@v4
17+
uses: actions/setup-node@v5
1818
with:
1919
node-version: 'lts/*'
2020

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "6.5.0"
2+
".": "7.0.0-alpha.1"
33
}

0 commit comments

Comments
 (0)