Skip to content

Commit 14fb90b

Browse files
asdf
1 parent e5a76a4 commit 14fb90b

File tree

1 file changed

+6
-48
lines changed

1 file changed

+6
-48
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -76,50 +76,11 @@ jobs:
7676
# -f ./.github/docker/Dockerfile.glibc \
7777
# .
7878

79-
# container_tests_musl_amd64:
80-
# runs-on: ubuntu-latest
81-
# strategy:
82-
# matrix:
83-
# linux_arch: [amd64]
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-
105-
# - name: Run Buildx
106-
# run: |
107-
# docker buildx create --name builder --bootstrap --use
108-
# docker --debug buildx build --progress=plain --no-cache \
109-
# --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:
79+
container_tests_musl_amd64:
11980
runs-on: ubuntu-latest
12081
strategy:
12182
matrix:
122-
linux_arch: [arm64v8]
83+
linux_arch: [amd64, arm64v8]
12384
node: [16.20.1, 18.x, 20.x, 22.x]
12485
fail-fast: false
12586
steps:
@@ -143,15 +104,12 @@ jobs:
143104

144105
- name: Run Buildx
145106
run: |
146-
echo "Docker version: $(docker --version)"
147107
docker buildx create --name builder --bootstrap --use
148-
echo "${{ steps.get_nodejs_version.outputs.version }}"
149-
IMAGE="arm64v8/node:${{ steps.get_nodejs_version.outputs.version }}-alpine"
150-
echo "Image: $IMAGE"
151-
docker --debug image pull --platform arm64 $IMAGE
152-
echo '---------'
108+
docker buildx create --name builder --bootstrap --use
109+
PLATFORM=$(node -p 'process.arch')
110+
echo $PLATFORM
153111
docker --debug buildx build --progress=plain --no-cache \
154-
--platform linux/arm64 \
112+
--platform linux/$PLATFORM \
155113
--build-arg="PLATFORM=${{ matrix.linux_arch }}" \
156114
--build-arg="NODE_VERSION=${{ steps.get_nodejs_version.outputs.version }}" \
157115
--build-arg="RUN_TEST=true" \

0 commit comments

Comments
 (0)