|
8 | 8 | name: Test
|
9 | 9 |
|
10 | 10 | jobs:
|
11 |
| - host_tests: |
12 |
| - strategy: |
13 |
| - matrix: |
14 |
| - os: [macos-latest, windows-2019] |
15 |
| - node: [16.x, 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: Build with Node.js ${{ matrix.node }} on ${{ matrix.os }} |
28 |
| - run: node .github/scripts/libmongocrypt.mjs ${{ runner.os == 'Windows' && '--build' || '' }} |
29 |
| - shell: bash |
30 |
| - |
31 |
| - - name: Test ${{ matrix.os }} |
32 |
| - shell: bash |
33 |
| - run: npm run test |
34 |
| - |
35 |
| - container_tests_glibc: |
36 |
| - runs-on: ubuntu-latest |
37 |
| - strategy: |
38 |
| - matrix: |
39 |
| - linux_arch: [s390x, arm64, amd64] |
40 |
| - node: [16.x, 18.x, 20.x, 22.x] |
41 |
| - fail-fast: false |
42 |
| - steps: |
43 |
| - - uses: actions/checkout@v4 |
44 |
| - |
45 |
| - - uses: actions/setup-node@v4 |
46 |
| - with: |
47 |
| - node-version: ${{ matrix.node }} |
48 |
| - |
49 |
| - - name: Get Full Node.js Version |
50 |
| - id: get_nodejs_version |
51 |
| - shell: bash |
52 |
| - run: | |
53 |
| - echo "version=$(node --print 'process.version.slice(1)')" >> "$GITHUB_OUTPUT" |
54 |
| - echo "ubuntu_version=$(node --print '(+process.version.slice(1).split(`.`).at(0)) > 16 ? `noble` : `bionic`')" >> "$GITHUB_OUTPUT" |
55 |
| -
|
56 |
| - - name: Set up QEMU |
57 |
| - uses: docker/setup-qemu-action@v3 |
58 |
| - with: |
59 |
| - image: 'tonistiigi/binfmt@sha256:66e11bea77a5ea9d6f0fe79b57cd2b189b5d15b93a2bdb925be22949232e4e55' |
60 |
| - |
61 |
| - - name: Set up Docker Buildx |
62 |
| - uses: docker/setup-buildx-action@v3 |
63 |
| - with: |
64 |
| - version: v0.18.0 |
65 |
| - driver-opts: image=moby/buildkit:v0.17.2 |
66 |
| - |
67 |
| - - name: Run Buildx |
68 |
| - run: | |
69 |
| - docker buildx create --name builder --bootstrap --use |
70 |
| - docker buildx build \ |
71 |
| - --platform linux/${{ matrix.linux_arch }} \ |
72 |
| - --build-arg="NODE_ARCH=${{ matrix.linux_arch == 'amd64' && 'x64' || matrix.linux_arch }}" \ |
73 |
| - --build-arg="NODE_VERSION=${{ steps.get_nodejs_version.outputs.version }}" \ |
74 |
| - --build-arg="UBUNTU_VERSION=${{ steps.get_nodejs_version.outputs.ubuntu_version }}" \ |
75 |
| - --build-arg="RUN_TEST=true" \ |
76 |
| - --output type=local,dest=./prebuilds,platform-split=false \ |
77 |
| - -f ./.github/docker/Dockerfile.glibc \ |
78 |
| - . |
| 11 | + # host_tests: |
| 12 | + # strategy: |
| 13 | + # matrix: |
| 14 | + # os: [macos-latest, windows-2019] |
| 15 | + # node: [16.x, 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: Build with Node.js ${{ matrix.node }} on ${{ matrix.os }} |
| 28 | + # run: node .github/scripts/libmongocrypt.mjs ${{ runner.os == 'Windows' && '--build' || '' }} |
| 29 | + # shell: bash |
| 30 | + |
| 31 | + # - name: Test ${{ matrix.os }} |
| 32 | + # shell: bash |
| 33 | + # run: npm run test |
| 34 | + |
| 35 | + # container_tests_glibc: |
| 36 | + # runs-on: ubuntu-latest |
| 37 | + # strategy: |
| 38 | + # matrix: |
| 39 | + # linux_arch: [s390x, arm64, amd64] |
| 40 | + # node: [16.x, 18.x, 20.x, 22.x] |
| 41 | + # fail-fast: false |
| 42 | + # steps: |
| 43 | + # - uses: actions/checkout@v4 |
| 44 | + |
| 45 | + # - uses: actions/setup-node@v4 |
| 46 | + # with: |
| 47 | + # node-version: ${{ matrix.node }} |
| 48 | + |
| 49 | + # - name: Get Full Node.js Version |
| 50 | + # id: get_nodejs_version |
| 51 | + # shell: bash |
| 52 | + # run: | |
| 53 | + # echo "version=$(node --print 'process.version.slice(1)')" >> "$GITHUB_OUTPUT" |
| 54 | + # echo "ubuntu_version=$(node --print '(+process.version.slice(1).split(`.`).at(0)) > 16 ? `noble` : `bionic`')" >> "$GITHUB_OUTPUT" |
| 55 | + |
| 56 | + # - name: Set up QEMU |
| 57 | + # uses: docker/setup-qemu-action@v3 |
| 58 | + # with: |
| 59 | + # image: 'tonistiigi/binfmt@sha256:66e11bea77a5ea9d6f0fe79b57cd2b189b5d15b93a2bdb925be22949232e4e55' |
| 60 | + |
| 61 | + # - name: Set up Docker Buildx |
| 62 | + # uses: docker/setup-buildx-action@v3 |
| 63 | + # with: |
| 64 | + # version: v0.18.0 |
| 65 | + # driver-opts: image=moby/buildkit:v0.17.2 |
| 66 | + |
| 67 | + # - name: Run Buildx |
| 68 | + # run: | |
| 69 | + # docker buildx create --name builder --bootstrap --use |
| 70 | + # docker buildx build \ |
| 71 | + # --platform linux/${{ matrix.linux_arch }} \ |
| 72 | + # --build-arg="NODE_ARCH=${{ matrix.linux_arch == 'amd64' && 'x64' || matrix.linux_arch }}" \ |
| 73 | + # --build-arg="NODE_VERSION=${{ steps.get_nodejs_version.outputs.version }}" \ |
| 74 | + # --build-arg="UBUNTU_VERSION=${{ steps.get_nodejs_version.outputs.ubuntu_version }}" \ |
| 75 | + # --build-arg="RUN_TEST=true" \ |
| 76 | + # --output type=local,dest=./prebuilds,platform-split=false \ |
| 77 | + # -f ./.github/docker/Dockerfile.glibc \ |
| 78 | + # . |
79 | 79 |
|
80 | 80 |
|
81 | 81 | container_tests_musl:
|
|
0 commit comments