Skip to content

Commit 4368194

Browse files
staging for testing
1 parent 0936bf0 commit 4368194

File tree

2 files changed

+90
-31
lines changed

2 files changed

+90
-31
lines changed

.github/docker/Dockerfile.musl

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
FROM alpine:3.18 AS build
2+
3+
ARG NODE_VERSION=16.20.1
4+
# Possible values: s390x, arm64, x64
5+
ARG NODE_ARCH
6+
ADD https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-${NODE_ARCH}.tar.gz /
7+
RUN mkdir -p /nodejs && tar -xzf /node-v${NODE_VERSION}-linux-${NODE_ARCH}.tar.gz --strip-components=1 -C /nodejs
8+
ENV PATH=$PATH:/nodejs/bin
9+
10+
node --version
11+
12+
# WORKDIR /mongodb-client-encryption
13+
# COPY . .
14+
15+
# RUN apt-get -qq update && apt-get -qq install -y python3 build-essential && ldd --version
16+
17+
# RUN npm run install:libmongocrypt
18+
19+
# ARG RUN_TEST
20+
# RUN [ -n "$RUN_TEST" ] && npm run test || echo 'skipping testing!'
21+
22+
# FROM scratch
23+
24+
# COPY --from=build /mongodb-client-encryption/prebuilds/ /

.github/workflows/build.yml

Lines changed: 66 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -12,35 +12,70 @@ permissions:
1212
id-token: write
1313

1414
jobs:
15-
host_builds:
16-
strategy:
17-
matrix:
18-
os: [macos-latest, windows-2019]
19-
runs-on: ${{ matrix.os }}
20-
steps:
21-
- uses: actions/checkout@v4
15+
# host_builds:
16+
# strategy:
17+
# matrix:
18+
# os: [macos-latest, windows-2019]
19+
# runs-on: ${{ matrix.os }}
20+
# steps:
21+
# - uses: actions/checkout@v4
22+
23+
# - name: Build ${{ matrix.os }} Prebuild
24+
# run: node .github/scripts/libmongocrypt.mjs ${{ runner.os == 'Windows' && '--build' || '' }}
25+
# shell: bash
26+
27+
# - id: upload
28+
# name: Upload prebuild
29+
# uses: actions/upload-artifact@v4
30+
# with:
31+
# name: build-${{ matrix.os }}
32+
# path: prebuilds/
33+
# if-no-files-found: 'error'
34+
# retention-days: 1
35+
# compression-level: 0
36+
37+
# container_builds:
38+
# outputs:
39+
# artifact_id: ${{ steps.upload.outputs.artifact-id }}
40+
# runs-on: ubuntu-latest
41+
# strategy:
42+
# matrix:
43+
# linux_arch: [s390x, arm64, amd64]
44+
# steps:
45+
# - uses: actions/checkout@v4
46+
47+
# - name: Set up QEMU
48+
# uses: docker/setup-qemu-action@v3
2249

23-
- name: Build ${{ matrix.os }} Prebuild
24-
run: node .github/scripts/libmongocrypt.mjs ${{ runner.os == 'Windows' && '--build' || '' }}
25-
shell: bash
50+
# - name: Set up Docker Buildx
51+
# uses: docker/setup-buildx-action@v3
2652

27-
- id: upload
28-
name: Upload prebuild
29-
uses: actions/upload-artifact@v4
30-
with:
31-
name: build-${{ matrix.os }}
32-
path: prebuilds/
33-
if-no-files-found: 'error'
34-
retention-days: 1
35-
compression-level: 0
53+
# - name: Run Buildx
54+
# run: |
55+
# docker buildx create --name builder --bootstrap --use
56+
# docker buildx build \
57+
# --platform linux/${{ matrix.linux_arch }} \
58+
# --build-arg="NODE_ARCH=${{ matrix.linux_arch == 'amd64' && 'x64' || matrix.linux_arch }}" \
59+
# --output type=local,dest=./prebuilds,platform-split=false \
60+
# -f ./.github/docker/Dockerfile.glibc \
61+
# .
3662

37-
container_builds:
63+
# - id: upload
64+
# name: Upload prebuild
65+
# uses: actions/upload-artifact@v4
66+
# with:
67+
# name: build-linux-${{ matrix.linux_arch }}
68+
# path: prebuilds/
69+
# if-no-files-found: 'error'
70+
# retention-days: 1
71+
# compression-level: 0
72+
container_builds_musl:
3873
outputs:
3974
artifact_id: ${{ steps.upload.outputs.artifact-id }}
4075
runs-on: ubuntu-latest
4176
strategy:
4277
matrix:
43-
linux_arch: [s390x, arm64, amd64]
78+
linux_arch: [arm64, amd64]
4479
steps:
4580
- uses: actions/checkout@v4
4681

@@ -57,15 +92,15 @@ jobs:
5792
--platform linux/${{ matrix.linux_arch }} \
5893
--build-arg="NODE_ARCH=${{ matrix.linux_arch == 'amd64' && 'x64' || matrix.linux_arch }}" \
5994
--output type=local,dest=./prebuilds,platform-split=false \
60-
-f ./.github/docker/Dockerfile.glibc \
95+
-f ./.github/docker/Dockerfile.musl \
6196
.
6297
63-
- id: upload
64-
name: Upload prebuild
65-
uses: actions/upload-artifact@v4
66-
with:
67-
name: build-linux-${{ matrix.linux_arch }}
68-
path: prebuilds/
69-
if-no-files-found: 'error'
70-
retention-days: 1
71-
compression-level: 0
98+
# - id: upload
99+
# name: Upload prebuild
100+
# uses: actions/upload-artifact@v4
101+
# with:
102+
# name: build-linux-${{ matrix.linux_arch }}
103+
# path: prebuilds/
104+
# if-no-files-found: 'error'
105+
# retention-days: 1
106+
# compression-level: 0

0 commit comments

Comments
 (0)