Skip to content

Commit 992cd5a

Browse files
committed
chore: add the all build
1 parent b4e5489 commit 992cd5a

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed

.github/scripts/libmongocrypt.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ async function main() {
232232
// install with "ignore-scripts" so that we don't attempt to download a prebuild
233233
await run('npm', ['install', '--ignore-scripts']);
234234
// The prebuild command will make both a .node file in `./build` (local and CI testing will run on current code)
235-
// it will also produce `./prebuild/xx.tgz`. prebuild has GH upload functionality.
235+
// it will also produce `./prebuilds/mongodb-client-encryption-vVERSION-napi-vNAPI_VERSION-OS-ARCH.tar.gz`.
236236
await run('npm', ['run', 'prebuild']);
237237
}
238238

.github/workflows/build.yml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ name: build
99

1010
jobs:
1111
macos_windows_builds:
12-
outputs:
13-
artifact_id: ${{ steps.upload.outputs.artifact-id }}
1412
strategy:
1513
matrix:
1614
os: [macos-11, macos-latest, windows-2019]
@@ -30,6 +28,7 @@ jobs:
3028
path: prebuilds/
3129
if-no-files-found: 'error'
3230
retention-days: 1
31+
compression-level: 0
3332

3433
linux_builds:
3534
outputs:
@@ -55,3 +54,23 @@ jobs:
5554
path: prebuilds/
5655
if-no-files-found: 'error'
5756
retention-days: 1
57+
compression-level: 0
58+
59+
collect:
60+
needs: [linux_builds, macos_windows_builds]
61+
runs-on: ubunutu-latest
62+
steps:
63+
- uses: actions/download-artifact@v4
64+
65+
- name: Display structure of downloaded files
66+
run: ls -R
67+
68+
- id: upload
69+
name: Upload all prebuilds
70+
uses: actions/upload-artifact@v4
71+
with:
72+
name: all-build
73+
path: '*.tar.gz'
74+
if-no-files-found: 'error'
75+
retention-days: 1
76+
compression-level: 0

0 commit comments

Comments
 (0)