Skip to content

Commit 2e4021a

Browse files
packge updates and restrict test matrix
1 parent bf6253e commit 2e4021a

File tree

3 files changed

+94
-94
lines changed

3 files changed

+94
-94
lines changed

.github/workflows/test.yml

Lines changed: 80 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -38,83 +38,83 @@ jobs:
3838
shell: bash
3939
run: npm test
4040

41-
container_tests_glibc:
42-
runs-on: ubuntu-latest
43-
strategy:
44-
matrix:
45-
linux_arch: [s390x, arm64, amd64]
46-
# node: [16.x, 18.x, 20.x, 22.x]
47-
node: [16.x]
48-
fail-fast: false
49-
steps:
50-
- uses: actions/checkout@v4
51-
52-
- uses: actions/setup-node@v4
53-
with:
54-
node-version: ${{ matrix.node }}
55-
56-
- name: Get Full Node.js Version
57-
id: get_nodejs_version
58-
shell: bash
59-
run: |
60-
echo "version=$(node --print 'process.version.slice(1)')" >> "$GITHUB_OUTPUT"
61-
echo "ubuntu_version=$(node --print '(+process.version.slice(1).split(`.`).at(0)) > 16 ? `noble` : `bionic`')" >> "$GITHUB_OUTPUT"
62-
63-
- name: Set up QEMU
64-
uses: docker/setup-qemu-action@v3
65-
66-
- name: Set up Docker Buildx
67-
uses: docker/setup-buildx-action@v3
68-
69-
- name: Run Buildx
70-
run: |
71-
docker buildx create --name builder --bootstrap --use
72-
docker buildx build \
73-
--platform linux/${{ matrix.linux_arch }} \
74-
--build-arg="NODE_ARCH=${{ matrix.linux_arch == 'amd64' && 'x64' || matrix.linux_arch }}" \
75-
--build-arg="NODE_VERSION=${{ steps.get_nodejs_version.outputs.version }}" \
76-
--build-arg="UBUNTU_VERSION=${{ steps.get_nodejs_version.outputs.ubuntu_version }}" \
77-
--build-arg="RUN_TEST=true" \
78-
--output type=local,dest=./prebuilds,platform-split=false \
79-
-f ./.github/docker/Dockerfile.glibc \
80-
.
81-
82-
container_tests_musl:
83-
runs-on: ubuntu-latest
84-
strategy:
85-
matrix:
86-
linux_arch: [arm64, amd64]
87-
# node: [16.20.1, 18.x, 20.x, 22.x]
88-
node: [16.20.1]
89-
fail-fast: false
90-
91-
steps:
92-
- uses: actions/checkout@v4
93-
94-
- uses: actions/setup-node@v4
95-
with:
96-
node-version: ${{ matrix.node }}
97-
98-
- name: Get Full Node.js Version
99-
id: get_nodejs_version
100-
shell: bash
101-
run: |
102-
echo "version=$(node --print 'process.version.slice(1)')" >> "$GITHUB_OUTPUT"
103-
104-
- name: Set up QEMU
105-
uses: docker/setup-qemu-action@v3
106-
107-
- name: Set up Docker Buildx
108-
uses: docker/setup-buildx-action@v3
109-
110-
- name: Run Buildx
111-
run: |
112-
docker buildx create --name builder --bootstrap --use
113-
docker --debug buildx build --progress=plain --no-cache \
114-
--platform linux/${{ matrix.linux_arch }} \
115-
--build-arg="PLATFORM=${{ matrix.linux_arch }}" \
116-
--build-arg="NODE_VERSION=${{ steps.get_nodejs_version.outputs.version }}" \
117-
--build-arg="RUN_TEST=true" \
118-
--output type=local,dest=./prebuilds,platform-split=false \
119-
-f ./.github/docker/Dockerfile.musl \
120-
.
41+
# container_tests_glibc:
42+
# runs-on: ubuntu-latest
43+
# strategy:
44+
# matrix:
45+
# linux_arch: [s390x, arm64, amd64]
46+
# # node: [16.x, 18.x, 20.x, 22.x]
47+
# node: [16.x]
48+
# fail-fast: false
49+
# steps:
50+
# - uses: actions/checkout@v4
51+
52+
# - uses: actions/setup-node@v4
53+
# with:
54+
# node-version: ${{ matrix.node }}
55+
56+
# - name: Get Full Node.js Version
57+
# id: get_nodejs_version
58+
# shell: bash
59+
# run: |
60+
# echo "version=$(node --print 'process.version.slice(1)')" >> "$GITHUB_OUTPUT"
61+
# echo "ubuntu_version=$(node --print '(+process.version.slice(1).split(`.`).at(0)) > 16 ? `noble` : `bionic`')" >> "$GITHUB_OUTPUT"
62+
63+
# - name: Set up QEMU
64+
# uses: docker/setup-qemu-action@v3
65+
66+
# - name: Set up Docker Buildx
67+
# uses: docker/setup-buildx-action@v3
68+
69+
# - name: Run Buildx
70+
# run: |
71+
# docker buildx create --name builder --bootstrap --use
72+
# docker buildx build \
73+
# --platform linux/${{ matrix.linux_arch }} \
74+
# --build-arg="NODE_ARCH=${{ matrix.linux_arch == 'amd64' && 'x64' || matrix.linux_arch }}" \
75+
# --build-arg="NODE_VERSION=${{ steps.get_nodejs_version.outputs.version }}" \
76+
# --build-arg="UBUNTU_VERSION=${{ steps.get_nodejs_version.outputs.ubuntu_version }}" \
77+
# --build-arg="RUN_TEST=true" \
78+
# --output type=local,dest=./prebuilds,platform-split=false \
79+
# -f ./.github/docker/Dockerfile.glibc \
80+
# .
81+
82+
# container_tests_musl:
83+
# runs-on: ubuntu-latest
84+
# strategy:
85+
# matrix:
86+
# linux_arch: [arm64, amd64]
87+
# # node: [16.20.1, 18.x, 20.x, 22.x]
88+
# node: [16.20.1]
89+
# fail-fast: false
90+
91+
# steps:
92+
# - uses: actions/checkout@v4
93+
94+
# - uses: actions/setup-node@v4
95+
# with:
96+
# node-version: ${{ matrix.node }}
97+
98+
# - name: Get Full Node.js Version
99+
# id: get_nodejs_version
100+
# shell: bash
101+
# run: |
102+
# echo "version=$(node --print 'process.version.slice(1)')" >> "$GITHUB_OUTPUT"
103+
104+
# - name: Set up QEMU
105+
# uses: docker/setup-qemu-action@v3
106+
107+
# - name: Set up Docker Buildx
108+
# uses: docker/setup-buildx-action@v3
109+
110+
# - name: Run Buildx
111+
# run: |
112+
# docker buildx create --name builder --bootstrap --use
113+
# docker --debug buildx build --progress=plain --no-cache \
114+
# --platform linux/${{ matrix.linux_arch }} \
115+
# --build-arg="PLATFORM=${{ matrix.linux_arch }}" \
116+
# --build-arg="NODE_VERSION=${{ steps.get_nodejs_version.outputs.version }}" \
117+
# --build-arg="RUN_TEST=true" \
118+
# --output type=local,dest=./prebuilds,platform-split=false \
119+
# -f ./.github/docker/Dockerfile.musl \
120+
# .

package-lock.json

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
"addon/*"
1111
],
1212
"dependencies": {
13-
"@wasm-fmt/clang-format": "^19.1.3",
1413
"bindings": "^1.5.0",
15-
"node-addon-api": "^8.1.0"
14+
"node-addon-api": "^4.3.0"
1615
},
1716
"license": "Apache-2.0",
1817
"devDependencies": {
18+
"@wasm-fmt/clang-format": "^19.1.3",
1919
"@mongodb-js/zstd": "^1.2.0",
2020
"@typescript-eslint/eslint-plugin": "^8.11.0",
2121
"chai": "^4.5.0",

0 commit comments

Comments
 (0)