Skip to content

Commit

Permalink
add back full build matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
baileympearson committed Jun 25, 2024
1 parent a47f167 commit 76431e7
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 33 deletions.
55 changes: 27 additions & 28 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ jobs:
host_builds:
strategy:
matrix:
os: [macos-latest]
# os: [macos-latest, windows-2019]
os: [macos-latest, windows-2019]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand All @@ -39,35 +38,35 @@ jobs:
retention-days: 1
compression-level: 0

# container_builds:
# outputs:
# artifact_id: ${{ steps.upload.outputs.artifact-id }}
# runs-on: ubuntu-latest
# strategy:
# matrix:
# linux_arch: [s390x, arm64, amd64]
# steps:
# - uses: actions/checkout@v4
container_builds:
outputs:
artifact_id: ${{ steps.upload.outputs.artifact-id }}
runs-on: ubuntu-latest
strategy:
matrix:
linux_arch: [s390x, arm64, amd64]
steps:
- uses: actions/checkout@v4

# - name: Set up QEMU
# uses: docker/setup-qemu-action@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

# - name: Run Buildx
# run: |
# docker buildx create --name builder --bootstrap --use
# docker buildx build --platform linux/${{ matrix.linux_arch }} --output type=local,dest=./prebuilds,platform-split=false -f ./.github/docker/Dockerfile.glibc .
- name: Run Buildx
run: |
docker buildx create --name builder --bootstrap --use
docker buildx build --platform linux/${{ matrix.linux_arch }} --output type=local,dest=./prebuilds,platform-split=false -f ./.github/docker/Dockerfile.glibc .
# - id: upload
# name: Upload prebuild
# uses: actions/upload-artifact@v4
# with:
# name: build-linux-${{ matrix.linux_arch }}
# path: prebuilds/
# if-no-files-found: 'error'
# retention-days: 1
# compression-level: 0
- id: upload
name: Upload prebuild
uses: actions/upload-artifact@v4
with:
name: build-linux-${{ matrix.linux_arch }}
path: prebuilds/
if-no-files-found: 'error'
retention-days: 1
compression-level: 0


9 changes: 4 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ jobs:
aws_secret_id: ${{ secrets.AWS_SECRET_ID }}
npm_package_name: 'mongodb-client-encryption'
dry_run: ${{ needs.release_please.outputs.release_created == '' }}
artifact_directory: artifacts
sign_native: true

- name: Copy sbom file to release assets
Expand Down Expand Up @@ -89,7 +88,7 @@ jobs:
- name: Install Node and dependencies
uses: baileympearson/drivers-github-tools/node/setup@add-signing-env-action-for-node

# - run: npm publish --provenance --tag=latest
# if: ${{ needs.release_please.outputs.release_created }}
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm publish --provenance --tag=latest
if: ${{ needs.release_please.outputs.release_created }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 76431e7

Please sign in to comment.