Skip to content

Commit d31c5f4

Browse files
asdf
1 parent 5e9ab8e commit d31c5f4

File tree

2 files changed

+45
-7
lines changed

2 files changed

+45
-7
lines changed

.github/workflows/test.yml

Lines changed: 43 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
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:
@@ -21,8 +21,8 @@ jobs:
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+
.

etc/docker.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
LINUX_ARCH=arm64
99

1010
# 16.20.1+, default 16.20.1
11-
NODE_VERSION=16.20.1
11+
NODE_VERSION=18.0.0
1212

1313
SCRIPT_DIR=$(dirname ${BASH_SOURCE:-$0})
1414
PROJECT_DIR=$SCRIPT_DIR/..
@@ -43,3 +43,4 @@ build_and_test_glibc() {
4343
}
4444

4545

46+
build_and_test_musl

0 commit comments

Comments
 (0)