Skip to content

Commit

Permalink
chore: add the all build
Browse files Browse the repository at this point in the history
  • Loading branch information
nbbeeken committed May 24, 2024
1 parent b4e5489 commit 992cd5a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/libmongocrypt.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ async function main() {
// install with "ignore-scripts" so that we don't attempt to download a prebuild
await run('npm', ['install', '--ignore-scripts']);
// The prebuild command will make both a .node file in `./build` (local and CI testing will run on current code)
// it will also produce `./prebuild/xx.tgz`. prebuild has GH upload functionality.
// it will also produce `./prebuilds/mongodb-client-encryption-vVERSION-napi-vNAPI_VERSION-OS-ARCH.tar.gz`.
await run('npm', ['run', 'prebuild']);
}

Expand Down
23 changes: 21 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ name: build

jobs:
macos_windows_builds:
outputs:
artifact_id: ${{ steps.upload.outputs.artifact-id }}
strategy:
matrix:
os: [macos-11, macos-latest, windows-2019]
Expand All @@ -30,6 +28,7 @@ jobs:
path: prebuilds/
if-no-files-found: 'error'
retention-days: 1
compression-level: 0

linux_builds:
outputs:
Expand All @@ -55,3 +54,23 @@ jobs:
path: prebuilds/
if-no-files-found: 'error'
retention-days: 1
compression-level: 0

collect:
needs: [linux_builds, macos_windows_builds]
runs-on: ubunutu-latest
steps:
- uses: actions/download-artifact@v4

- name: Display structure of downloaded files
run: ls -R

- id: upload
name: Upload all prebuilds
uses: actions/upload-artifact@v4
with:
name: all-build
path: '*.tar.gz'
if-no-files-found: 'error'
retention-days: 1
compression-level: 0

0 comments on commit 992cd5a

Please sign in to comment.