From a947d6ac7b7b186a5b98f4d20a4aed0d742ee479 Mon Sep 17 00:00:00 2001 From: ClarkXia Date: Thu, 9 May 2024 14:27:48 +0800 Subject: [PATCH] fix: ci --- .github/workflows/CI.yml | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index f849ee1..47a54d3 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -133,7 +133,7 @@ jobs: - name: Upload artifact uses: actions/upload-artifact@v4 with: - name: ${{ env.APP_NAME }}.${{ matrix.settings.name }}.node + name: bindings-${{ matrix.settings.target }} path: ${{ env.APP_NAME }}.*.node if-no-files-found: error test-macOS-windows-binding: @@ -167,7 +167,7 @@ jobs: - name: Download artifacts uses: actions/download-artifact@v4 with: - name: ${{ env.APP_NAME }}.${{ matrix.settings.name }}.node + name: bindings-${{ matrix.settings.target }} path: . - name: List packages run: ls -R . @@ -329,25 +329,19 @@ jobs: - name: Download macOS x64 artifact uses: actions/download-artifact@v4 with: - name: ${{ env.APP_NAME }}.darwin-x64.node + name: bindings-x86_64-apple-darwin + path: artifacts + - name: Download macOS arm64 artifact + uses: actions/download-artifact@v4 + with: + name: bindings-aarch64-apple-darwin path: artifacts - - name: List packages - run: ls artifacts/ - shell: bash - # - name: Download macOS arm64 artifact - # uses: actions/download-artifact@v4 - # with: - # name: ${{ env.APP_NAME }}.darwin-arm64.node - # path: artifacts - # - name: List packages - # run: ls artifacts/ - # shell: bash - name: Combine binaries run: yarn universal - name: Upload artifact uses: actions/upload-artifact@v4 with: - name: ${{ env.APP_NAME }}.darwin-universal.node + name: bindings-universal-apple-darwin path: ${{ env.APP_NAME }}.*.node if-no-files-found: error publish: