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]
1616 fail-fast : false
1717 runs-on : ${{ matrix.os }}
1818 steps :
2121 - uses : actions/setup-node@v4
2222 with :
2323 node-version : ${{ matrix.node }}
24- cache : ' npm'
25- registry-url : ' https://registry.npmjs.org'
24+ cache : " npm"
25+ registry-url : " https://registry.npmjs.org"
2626
2727 - name : Install zstd
2828 run : npm run install-zstd
@@ -76,11 +76,11 @@ jobs:
7676 -f ./.github/docker/Dockerfile.glibc \
7777 .
7878
79- container_tests_musl :
79+ container_tests_musl_amd64 :
8080 runs-on : ubuntu-latest
8181 strategy :
8282 matrix :
83- linux_arch : [arm64v8, amd64]
83+ linux_arch : [amd64]
8484 node : [16.20.1, 18.x, 20.x, 22.x]
8585 fail-fast : false
8686 steps :
@@ -114,4 +114,41 @@ jobs:
114114 -f ./.github/docker/Dockerfile.musl \
115115 .
116116
117-
117+ # TODO: fix musl_arm64 tests on Node18+
118+ container_tests_musl_arm64 :
119+ runs-on : ubuntu-latest
120+ strategy :
121+ matrix :
122+ linux_arch : [arm64v8]
123+ node : [16.20.1]
124+ fail-fast : false
125+ steps :
126+ - uses : actions/checkout@v4
127+
128+ - uses : actions/setup-node@v4
129+ with :
130+ node-version : ${{ matrix.node }}
131+
132+ - name : Get Full Node.js Version
133+ id : get_nodejs_version
134+ shell : bash
135+ run : |
136+ echo "version=$(node --print 'process.version.slice(1)')" >> "$GITHUB_OUTPUT"
137+
138+ - name : Set up QEMU
139+ uses : docker/setup-qemu-action@v3
140+
141+ - name : Set up Docker Buildx
142+ uses : docker/setup-buildx-action@v3
143+
144+ - name : Run Buildx
145+ run : |
146+ docker buildx create --name builder --bootstrap --use
147+ docker --debug buildx build --progress=plain --no-cache \
148+ --platform linux/${{ matrix.linux_arch }} \
149+ --build-arg="PLATFORM=${{ matrix.linux_arch }}" \
150+ --build-arg="NODE_VERSION=${{ steps.get_nodejs_version.outputs.version }}" \
151+ --build-arg="RUN_TEST=true" \
152+ --output type=local,dest=./prebuilds,platform-split=false \
153+ -f ./.github/docker/Dockerfile.musl \
154+ .
0 commit comments