88name : Test
99
1010jobs :
11- host_tests :
12- strategy :
13- matrix :
14- os : [macos-latest, windows-2019]
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 compmile
32- run : npm install --loglevel verbose
33- shell : bash
34-
35- - name : Test ${{ matrix.os }}
36- shell : bash
37- run : npm test
38-
39- container_tests_glibc :
40- runs-on : ubuntu-latest
41- strategy :
42- matrix :
43- linux_arch : [s390x, arm64, amd64]
44- node : [16.x, 18.x, 20.x, 22.x]
45- fail-fast : false
46- steps :
47- - uses : actions/checkout@v4
48-
49- - uses : actions/setup-node@v4
50- with :
51- node-version : ${{ matrix.node }}
52-
53- - name : Get Full Node.js Version
54- id : get_nodejs_version
55- shell : bash
56- run : |
57- echo "version=$(node --print 'process.version.slice(1)')" >> "$GITHUB_OUTPUT"
58- echo "ubuntu_version=$(node --print '(+process.version.slice(1).split(`.`).at(0)) > 16 ? `noble` : `bionic`')" >> "$GITHUB_OUTPUT"
59-
60- - name : Set up QEMU
61- uses : docker/setup-qemu-action@v3
62-
63- - name : Set up Docker Buildx
64- uses : docker/setup-buildx-action@v3
65-
66- - name : Run Buildx
67- run : |
68- docker buildx create --name builder --bootstrap --use
69- docker buildx build \
70- --platform linux/${{ matrix.linux_arch }} \
71- --build-arg="NODE_ARCH=${{ matrix.linux_arch == 'amd64' && 'x64' || matrix.linux_arch }}" \
72- --build-arg="NODE_VERSION=${{ steps.get_nodejs_version.outputs.version }}" \
73- --build-arg="UBUNTU_VERSION=${{ steps.get_nodejs_version.outputs.ubuntu_version }}" \
74- --build-arg="RUN_TEST=true" \
75- --output type=local,dest=./prebuilds,platform-split=false \
76- -f ./.github/docker/Dockerfile.glibc \
77- .
78-
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- .
11+ # host_tests:
12+ # strategy:
13+ # matrix:
14+ # os: [macos-latest, windows-2019]
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 compmile
32+ # run: npm install --loglevel verbose
33+ # shell: bash
34+
35+ # - name: Test ${{ matrix.os }}
36+ # shell: bash
37+ # run: npm test
38+
39+ # container_tests_glibc:
40+ # runs-on: ubuntu-latest
41+ # strategy:
42+ # matrix:
43+ # linux_arch: [s390x, arm64, amd64]
44+ # node: [16.x, 18.x, 20.x, 22.x]
45+ # fail-fast: false
46+ # steps:
47+ # - uses: actions/checkout@v4
48+
49+ # - uses: actions/setup-node@v4
50+ # with:
51+ # node-version: ${{ matrix.node }}
52+
53+ # - name: Get Full Node.js Version
54+ # id: get_nodejs_version
55+ # shell: bash
56+ # run: |
57+ # echo "version=$(node --print 'process.version.slice(1)')" >> "$GITHUB_OUTPUT"
58+ # echo "ubuntu_version=$(node --print '(+process.version.slice(1).split(`.`).at(0)) > 16 ? `noble` : `bionic`')" >> "$GITHUB_OUTPUT"
59+
60+ # - name: Set up QEMU
61+ # uses: docker/setup-qemu-action@v3
62+
63+ # - name: Set up Docker Buildx
64+ # uses: docker/setup-buildx-action@v3
65+
66+ # - name: Run Buildx
67+ # run: |
68+ # docker buildx create --name builder --bootstrap --use
69+ # docker buildx build \
70+ # --platform linux/${{ matrix.linux_arch }} \
71+ # --build-arg="NODE_ARCH=${{ matrix.linux_arch == 'amd64' && 'x64' || matrix.linux_arch }}" \
72+ # --build-arg="NODE_VERSION=${{ steps.get_nodejs_version.outputs.version }}" \
73+ # --build-arg="UBUNTU_VERSION=${{ steps.get_nodejs_version.outputs.ubuntu_version }}" \
74+ # --build-arg="RUN_TEST=true" \
75+ # --output type=local,dest=./prebuilds,platform-split=false \
76+ # -f ./.github/docker/Dockerfile.glibc \
77+ # .
78+
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+ # .
116116
117117 # TODO: fix musl_arm64 tests on Node18+
118118 container_tests_musl_arm64 :
119119 runs-on : ubuntu-latest
120120 strategy :
121121 matrix :
122122 linux_arch : [arm64v8]
123- node : [16.20.1 ]
123+ node : [18.x ]
124124 fail-fast : false
125125 steps :
126126 - uses : actions/checkout@v4
@@ -143,6 +143,7 @@ jobs:
143143
144144 - name : Run Buildx
145145 run : |
146+ echo "Docker version: $(docker --version)"
146147 docker buildx create --name builder --bootstrap --use
147148 docker --debug buildx build --progress=plain --no-cache \
148149 --platform linux/${{ matrix.linux_arch }} \
0 commit comments