From 2ac49780d220fdba9e2a7aec97636866e5ac7919 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kr=C3=A6n=20Hansen?= Date: Mon, 17 Jun 2024 14:41:16 +0200 Subject: [PATCH] Using upload-artifact/merge action to merge prebuilds --- .github/workflows/pr-realm-js.yml | 12 +++++++++++- .github/workflows/publish-release.yml | 3 +-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr-realm-js.yml b/.github/workflows/pr-realm-js.yml index 87c5c7bb0a..48babfabc4 100644 --- a/.github/workflows/pr-realm-js.yml +++ b/.github/workflows/pr-realm-js.yml @@ -384,7 +384,17 @@ jobs: README.md packages/realm/prebuilds/android/${{ matrix.architecture }}/ if-no-files-found: error - + + merge-prebuilds: + runs-on: ubuntu-latest + needs: [prebuild-node, prebuild-apple, prebuild-android] + steps: + - name: Merge prebuild artifacts into a single artifact + uses: actions/upload-artifact/merge@v4 + with: + name: prebuilds + pattern: '*-prebuild' + integration-tests: name: Test ${{ matrix.variant.environment }} on ${{ matrix.variant.os }} (${{matrix.variant.target}}) needs: [generate-jsi, build-ts, prebuild-node, prebuild-apple, prebuild-android] diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 17aa3cd023..bec27ec0ba 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -81,8 +81,7 @@ jobs: path: ${{ github.workspace }} workflow_conclusion: "" # Ignores workflow conclusion github_token: ${{ secrets.REALM_CI_PAT }} - name_is_regexp: true - name: ".*-prebuild" + name: prebuilds - name: Read version id: get-version