From 992cd5aac92443c7998d985bab12abc882f983ff Mon Sep 17 00:00:00 2001 From: Neal Beeken Date: Fri, 24 May 2024 10:55:03 -0400 Subject: [PATCH] chore: add the all build --- .github/scripts/libmongocrypt.mjs | 2 +- .github/workflows/build.yml | 23 +++++++++++++++++++++-- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/.github/scripts/libmongocrypt.mjs b/.github/scripts/libmongocrypt.mjs index 2589be1..47f647a 100644 --- a/.github/scripts/libmongocrypt.mjs +++ b/.github/scripts/libmongocrypt.mjs @@ -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']); } diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4682903..0e5bf77 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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] @@ -30,6 +28,7 @@ jobs: path: prebuilds/ if-no-files-found: 'error' retention-days: 1 + compression-level: 0 linux_builds: outputs: @@ -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