@@ -11,18 +11,18 @@ jobs:
11
11
host_tests :
12
12
strategy :
13
13
matrix :
14
- # os: [macos-latest, windows-2019]
15
- os : ['ubuntu-latest' ]
16
- node : [16.20.1, 18.x, 20.x, 22.x]
14
+ os : [macos-latest, windows-2019]
15
+ node : [16.20.1, 18.x, 20.x, 22.x ]
16
+ fail-fast : false
17
17
runs-on : ${{ matrix.os }}
18
18
steps :
19
19
- uses : actions/checkout@v4
20
20
21
21
- uses : actions/setup-node@v4
22
22
with :
23
23
node-version : ${{ matrix.node }}
24
- cache : ' npm'
25
- registry-url : ' https://registry.npmjs.org'
24
+ cache : " npm"
25
+ registry-url : " https://registry.npmjs.org"
26
26
27
27
- name : Install zstd
28
28
run : npm run install-zstd
@@ -36,41 +36,80 @@ jobs:
36
36
shell : bash
37
37
run : npm test
38
38
39
- # container_tests:
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
- # steps:
46
- # - uses: actions/checkout@v4
47
-
48
- # - uses: actions/setup-node@v4
49
- # with:
50
- # node-version: ${{ matrix.node }}
51
-
52
- # - name: Get Full Node.js Version
53
- # id: get_nodejs_version
54
- # shell: bash
55
- # run: |
56
- # echo "version=$(node --print 'process.version.slice(1)')" >> "$GITHUB_OUTPUT"
57
- # echo "ubuntu_version=$(node --print '(+process.version.slice(1).split(`.`).at(0)) > 16 ? `noble` : `bionic`')" >> "$GITHUB_OUTPUT"
58
-
59
- # - name: Set up QEMU
60
- # uses: docker/setup-qemu-action@v3
61
-
62
- # - name: Set up Docker Buildx
63
- # uses: docker/setup-buildx-action@v3
64
-
65
- # - name: Run Buildx
66
- # run: |
67
- # docker buildx create --name builder --bootstrap --use
68
- # docker buildx build \
69
- # --platform linux/${{ matrix.linux_arch }} \
70
- # --build-arg="NODE_ARCH=${{ matrix.linux_arch == 'amd64' && 'x64' || matrix.linux_arch }}" \
71
- # --build-arg="NODE_VERSION=${{ steps.get_nodejs_version.outputs.version }}" \
72
- # --build-arg="UBUNTU_VERSION=${{ steps.get_nodejs_version.outputs.ubuntu_version }}" \
73
- # --build-arg="RUN_TEST=true" \
74
- # --output type=local,dest=./prebuilds,platform-split=false \
75
- # -f ./.github/docker/Dockerfile.glibc \
76
- # .
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 :
80
+ runs-on : ubuntu-latest
81
+ strategy :
82
+ matrix :
83
+ linux_arch : [amd64, arm64]
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 == 'arm64' && 'arm64v8' || 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
+ .
0 commit comments