@@ -76,11 +76,11 @@ jobs:
7676 -f ./.github/docker/Dockerfile.glibc \
7777 .
7878
79- container_tests_musl_amd64 :
79+ container_tests_musl :
8080 runs-on : ubuntu-latest
8181 strategy :
8282 matrix :
83- linux_arch : [amd64]
83+ linux_arch : [amd64, arm64 ]
8484 node : [16.20.1, 18.x, 20.x, 22.x]
8585 fail-fast : false
8686 steps :
@@ -107,46 +107,7 @@ jobs:
107107 docker buildx create --name builder --bootstrap --use
108108 docker --debug buildx build --progress=plain --no-cache \
109109 --platform linux/${{ matrix.linux_arch }} \
110- --build-arg="PLATFORM=${{ matrix.linux_arch }}" \
111- --build-arg="NODE_VERSION=${{ steps.get_nodejs_version.outputs.version }}" \
112- --build-arg="RUN_TEST=true" \
113- --output type=local,dest=./prebuilds,platform-split=false \
114- -f ./.github/docker/Dockerfile.musl \
115- .
116-
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 }}" \
110+ --build-arg="PLATFORM=${{ matrix.linux_arch == 'arm64' && 'arm64v8' || matrix.linux_arch }}" \
150111 --build-arg="NODE_VERSION=${{ steps.get_nodejs_version.outputs.version }}" \
151112 --build-arg="RUN_TEST=true" \
152113 --output type=local,dest=./prebuilds,platform-split=false \
0 commit comments