Skip to content

Commit 9100778

Browse files
winnow matrix
1 parent 2f304f2 commit 9100778

File tree

1 file changed

+72
-68
lines changed

1 file changed

+72
-68
lines changed

.github/workflows/test.yml

Lines changed: 72 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -8,39 +8,40 @@ on:
88
name: Test
99

1010
jobs:
11-
host_tests:
12-
strategy:
13-
matrix:
14-
os: [macos-latest, windows-2019, macos-13]
15-
node: [16.20.1, 18.x, 20.x, 22.x]
16-
fail-fast: false
17-
runs-on: ${{ matrix.os }}
18-
steps:
19-
- uses: actions/checkout@v4
20-
21-
- uses: actions/setup-node@v4
22-
with:
23-
node-version: ${{ matrix.node }}
24-
cache: "npm"
25-
registry-url: "https://registry.npmjs.org"
26-
27-
- name: Install zstd
28-
run: npm run install-zstd
29-
shell: bash
30-
31-
- name: install dependencies and compile
32-
run: npm install --ignore-scripts --loglevel verbose && npm run prebuild
33-
shell: bash
34-
35-
- name: Test ${{ matrix.os }}
36-
shell: bash
37-
run: npm test
11+
# host_tests:
12+
# strategy:
13+
# matrix:
14+
# os: [macos-latest, windows-2019, macos-13]
15+
# node: [16.20.1, 18.x, 20.x, 22.x]
16+
# fail-fast: false
17+
# runs-on: ${{ matrix.os }}
18+
# steps:
19+
# - uses: actions/checkout@v4
20+
21+
# - uses: actions/setup-node@v4
22+
# with:
23+
# node-version: ${{ matrix.node }}
24+
# cache: "npm"
25+
# registry-url: "https://registry.npmjs.org"
26+
27+
# - name: Install zstd
28+
# run: npm run install-zstd
29+
# shell: bash
30+
31+
# - name: install dependencies and compile
32+
# run: npm install --ignore-scripts --loglevel verbose && npm run prebuild
33+
# shell: bash
34+
35+
# - name: Test ${{ matrix.os }}
36+
# shell: bash
37+
# run: npm test
3838

3939
container_tests_glibc:
4040
runs-on: ubuntu-latest
4141
strategy:
4242
matrix:
43-
linux_arch: [s390x, arm64, amd64]
43+
# linux_arch: [s390x, arm64, amd64]
44+
linux_arch: [s390x, arm64]
4445
node: [16.x, 18.x, 20.x, 22.x]
4546
fail-fast: false
4647
steps:
@@ -62,6 +63,9 @@ jobs:
6263

6364
- name: Set up Docker Buildx
6465
uses: docker/setup-buildx-action@v3
66+
with:
67+
driver-opts: image=moby/buildkit:v0.18.1
68+
version: v0.19.2
6569

6670
- name: Run Buildx
6771
run: |
@@ -76,43 +80,43 @@ jobs:
7680
-f ./.github/docker/Dockerfile.glibc \
7781
.
7882
79-
container_tests_musl:
80-
runs-on: ubuntu-latest
81-
strategy:
82-
matrix:
83-
linux_arch: [amd64, arm64]
84-
node: [16.20.1, 18.x, 20.x, 22.x]
85-
fail-fast: false
86-
steps:
87-
- uses: actions/checkout@v4
88-
89-
- uses: actions/setup-node@v4
90-
with:
91-
node-version: ${{ matrix.node }}
92-
93-
- name: Get Full Node.js Version
94-
id: get_nodejs_version
95-
shell: bash
96-
run: |
97-
echo "version=$(node --print 'process.version.slice(1)')" >> "$GITHUB_OUTPUT"
98-
99-
- name: Set up QEMU
100-
uses: docker/setup-qemu-action@v3
101-
102-
- name: Set up Docker Buildx
103-
uses: docker/setup-buildx-action@v3
104-
with:
105-
driver-opts: image=moby/buildkit:v0.18.1
106-
version: v0.19.2
107-
108-
- name: Run Buildx
109-
run: |
110-
docker buildx create --name builder --bootstrap --use
111-
docker --debug buildx build --progress=plain --no-cache \
112-
--platform linux/${{ matrix.linux_arch }} \
113-
--build-arg="PLATFORM=${{ matrix.linux_arch == 'arm64' && 'arm64v8' || matrix.linux_arch }}" \
114-
--build-arg="NODE_VERSION=${{ steps.get_nodejs_version.outputs.version }}" \
115-
--build-arg="RUN_TEST=true" \
116-
--output type=local,dest=./prebuilds,platform-split=false \
117-
-f ./.github/docker/Dockerfile.musl \
118-
.
83+
# container_tests_musl:
84+
# runs-on: ubuntu-latest
85+
# strategy:
86+
# matrix:
87+
# linux_arch: [amd64, arm64]
88+
# node: [16.20.1, 18.x, 20.x, 22.x]
89+
# fail-fast: false
90+
# steps:
91+
# - uses: actions/checkout@v4
92+
93+
# - uses: actions/setup-node@v4
94+
# with:
95+
# node-version: ${{ matrix.node }}
96+
97+
# - name: Get Full Node.js Version
98+
# id: get_nodejs_version
99+
# shell: bash
100+
# run: |
101+
# echo "version=$(node --print 'process.version.slice(1)')" >> "$GITHUB_OUTPUT"
102+
103+
# - name: Set up QEMU
104+
# uses: docker/setup-qemu-action@v3
105+
106+
# - name: Set up Docker Buildx
107+
# uses: docker/setup-buildx-action@v3
108+
# with:
109+
# driver-opts: image=moby/buildkit:v0.18.1
110+
# version: v0.19.2
111+
112+
# - name: Run Buildx
113+
# run: |
114+
# docker buildx create --name builder --bootstrap --use
115+
# docker --debug buildx build --progress=plain --no-cache \
116+
# --platform linux/${{ matrix.linux_arch }} \
117+
# --build-arg="PLATFORM=${{ matrix.linux_arch == 'arm64' && 'arm64v8' || matrix.linux_arch }}" \
118+
# --build-arg="NODE_VERSION=${{ steps.get_nodejs_version.outputs.version }}" \
119+
# --build-arg="RUN_TEST=true" \
120+
# --output type=local,dest=./prebuilds,platform-split=false \
121+
# -f ./.github/docker/Dockerfile.musl \
122+
# .

0 commit comments

Comments
 (0)