diff --git a/.github/workflows/integration-test-classification-ggml.yml b/.github/workflows/integration-test-classification-ggml.yml index 899b636a8e..710ea0ed49 100644 --- a/.github/workflows/integration-test-classification-ggml.yml +++ b/.github/workflows/integration-test-classification-ggml.yml @@ -82,9 +82,32 @@ jobs: uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # 8.0.1 with: pattern: classification-ggml-${{ matrix.platform }}-${{ matrix.arch }}* - path: ${{ env.PKG_DIR }}/prebuilds + path: ${{ runner.temp }}/prebuilds-staging merge-multiple: true + - name: Move prebuilds from staging to workspace (Unix) + if: ${{ !inputs.prebuild_package && matrix.platform != 'win32' }} + shell: bash + run: | + mkdir -p ${{ env.PKG_DIR }}/prebuilds + cp -r ${{ runner.temp }}/prebuilds-staging/* ${{ env.PKG_DIR }}/prebuilds/ + echo "Prebuilds moved from staging area" + ls -la ${{ env.PKG_DIR }}/prebuilds/ + + # Windows path: bash cp -r mangles `${{ runner.temp }}` (= "C:\a\_temp") + # because Git Bash interprets `\a`/`\_` as escape sequences, so the + # source path becomes invalid and the copy silently no-ops. Use + # PowerShell Copy-Item with native Windows paths. + - name: Move prebuilds from staging to workspace (Windows) + if: ${{ !inputs.prebuild_package && matrix.platform == 'win32' }} + shell: powershell + run: | + $dst = "${{ env.PKG_DIR }}/prebuilds" + New-Item -ItemType Directory -Force -Path $dst | Out-Null + Copy-Item -Recurse -Force "${{ runner.temp }}\prebuilds-staging\*" $dst + Write-Host "Prebuilds moved from staging area" + Get-ChildItem -Recurse $dst | Select-Object FullName | Format-Table -AutoSize + - name: Download prebuilds from package (Linux/macOS) if: ${{ inputs.prebuild_package && matrix.platform != 'win32' }} working-directory: ${{ env.PKG_DIR }} diff --git a/.github/workflows/integration-test-llm-llamacpp.yml b/.github/workflows/integration-test-llm-llamacpp.yml index 7f7f91a599..1f7b318c94 100644 --- a/.github/workflows/integration-test-llm-llamacpp.yml +++ b/.github/workflows/integration-test-llm-llamacpp.yml @@ -169,9 +169,32 @@ jobs: if: ${{ !inputs.prebuild_package }} uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # 8.0.1 with: - path: ${{ env.WORKDIR }}/prebuilds + path: ${{ runner.temp }}/prebuilds-staging merge-multiple: true + - name: Move prebuilds from staging to workspace (Unix) + if: ${{ !inputs.prebuild_package && matrix.platform != 'win32' }} + shell: bash + run: | + mkdir -p ${{ env.WORKDIR }}/prebuilds + cp -r ${{ runner.temp }}/prebuilds-staging/* ${{ env.WORKDIR }}/prebuilds/ + echo "Prebuilds moved from staging area" + ls -la ${{ env.WORKDIR }}/prebuilds/ + + # Windows path: bash cp -r mangles `${{ runner.temp }}` (= "C:\a\_temp") + # because Git Bash interprets `\a`/`\_` as escape sequences, so the + # source path becomes invalid and the copy silently no-ops. Use + # PowerShell Copy-Item with native Windows paths. + - name: Move prebuilds from staging to workspace (Windows) + if: ${{ !inputs.prebuild_package && matrix.platform == 'win32' }} + shell: powershell + run: | + $dst = "${{ env.WORKDIR }}/prebuilds" + New-Item -ItemType Directory -Force -Path $dst | Out-Null + Copy-Item -Recurse -Force "${{ runner.temp }}\prebuilds-staging\*" $dst + Write-Host "Prebuilds moved from staging area" + Get-ChildItem -Recurse $dst | Select-Object FullName | Format-Table -AutoSize + - name: Download prebuilds from package (Linux/macOS) if: ${{ inputs.prebuild_package && matrix.platform != 'win32' }} working-directory: ${{ env.WORKDIR }} diff --git a/.github/workflows/integration-test-ocr-onnx.yml b/.github/workflows/integration-test-ocr-onnx.yml index 71f2571fe3..2a7d1e1187 100644 --- a/.github/workflows/integration-test-ocr-onnx.yml +++ b/.github/workflows/integration-test-ocr-onnx.yml @@ -98,9 +98,32 @@ jobs: if: ${{ !inputs.prebuild_package }} uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # 8.0.1 with: - path: ${{ inputs.workdir || env.PKG_DIR }}/prebuilds + path: ${{ runner.temp }}/prebuilds-staging merge-multiple: true + - name: Move prebuilds from staging to workspace (Unix) + if: ${{ !inputs.prebuild_package && matrix.platform != 'win32' }} + shell: bash + run: | + mkdir -p ${{ inputs.workdir || env.PKG_DIR }}/prebuilds + cp -r ${{ runner.temp }}/prebuilds-staging/* ${{ inputs.workdir || env.PKG_DIR }}/prebuilds/ + echo "Prebuilds moved from staging area" + ls -la ${{ inputs.workdir || env.PKG_DIR }}/prebuilds/ + + # Windows path: bash cp -r mangles `${{ runner.temp }}` (= "C:\a\_temp") + # because Git Bash interprets `\a`/`\_` as escape sequences, so the + # source path becomes invalid and the copy silently no-ops. Use + # PowerShell Copy-Item with native Windows paths. + - name: Move prebuilds from staging to workspace (Windows) + if: ${{ !inputs.prebuild_package && matrix.platform == 'win32' }} + shell: powershell + run: | + $dst = "${{ inputs.workdir || env.PKG_DIR }}/prebuilds" + New-Item -ItemType Directory -Force -Path $dst | Out-Null + Copy-Item -Recurse -Force "${{ runner.temp }}\prebuilds-staging\*" $dst + Write-Host "Prebuilds moved from staging area" + Get-ChildItem -Recurse $dst | Select-Object FullName | Format-Table -AutoSize + - name: Download prebuilds from package if: ${{ inputs.prebuild_package }} working-directory: ${{ inputs.workdir || env.PKG_DIR }} diff --git a/.github/workflows/integration-test-transcription-whispercpp.yml b/.github/workflows/integration-test-transcription-whispercpp.yml index 62b7b23485..6aa30bd993 100644 --- a/.github/workflows/integration-test-transcription-whispercpp.yml +++ b/.github/workflows/integration-test-transcription-whispercpp.yml @@ -135,9 +135,32 @@ jobs: if: ${{ !inputs.prebuild_package }} uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # 8.0.1 with: - path: ${{ inputs.workdir }}/prebuilds + path: ${{ runner.temp }}/prebuilds-staging merge-multiple: true + - name: Move prebuilds from staging to workspace (Unix) + if: ${{ !inputs.prebuild_package && matrix.platform != 'win32' }} + shell: bash + run: | + mkdir -p ${{ inputs.workdir }}/prebuilds + cp -r ${{ runner.temp }}/prebuilds-staging/* ${{ inputs.workdir }}/prebuilds/ + echo "Prebuilds moved from staging area" + ls -la ${{ inputs.workdir }}/prebuilds/ + + # Windows path: bash cp -r mangles `${{ runner.temp }}` (= "C:\a\_temp") + # because Git Bash interprets `\a`/`\_` as escape sequences, so the + # source path becomes invalid and the copy silently no-ops. Use + # PowerShell Copy-Item with native Windows paths. + - name: Move prebuilds from staging to workspace (Windows) + if: ${{ !inputs.prebuild_package && matrix.platform == 'win32' }} + shell: powershell + run: | + $dst = "${{ inputs.workdir }}/prebuilds" + New-Item -ItemType Directory -Force -Path $dst | Out-Null + Copy-Item -Recurse -Force "${{ runner.temp }}\prebuilds-staging\*" $dst + Write-Host "Prebuilds moved from staging area" + Get-ChildItem -Recurse $dst | Select-Object FullName | Format-Table -AutoSize + - name: Download prebuilds from package (Unix) if: ${{ inputs.prebuild_package && matrix.platform != 'win32' }} working-directory: ${{ inputs.workdir }} diff --git a/.github/workflows/integration-test-translation-nmtcpp.yml b/.github/workflows/integration-test-translation-nmtcpp.yml index 9a12444b22..6b1769d924 100644 --- a/.github/workflows/integration-test-translation-nmtcpp.yml +++ b/.github/workflows/integration-test-translation-nmtcpp.yml @@ -92,9 +92,32 @@ jobs: if: ${{ !inputs.prebuild_package }} uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # 8.0.1 with: - path: packages/translation-nmtcpp/prebuilds + path: ${{ runner.temp }}/prebuilds-staging merge-multiple: true + - name: Move prebuilds from staging to workspace (Unix) + if: ${{ !inputs.prebuild_package && matrix.platform != 'win32' }} + shell: bash + run: | + mkdir -p packages/translation-nmtcpp/prebuilds + cp -r ${{ runner.temp }}/prebuilds-staging/* packages/translation-nmtcpp/prebuilds/ + echo "Prebuilds moved from staging area" + ls -la packages/translation-nmtcpp/prebuilds/ + + # Windows path: bash cp -r mangles `${{ runner.temp }}` (= "C:\a\_temp") + # because Git Bash interprets `\a`/`\_` as escape sequences, so the + # source path becomes invalid and the copy silently no-ops. Use + # PowerShell Copy-Item with native Windows paths. + - name: Move prebuilds from staging to workspace (Windows) + if: ${{ !inputs.prebuild_package && matrix.platform == 'win32' }} + shell: powershell + run: | + $dst = "packages/translation-nmtcpp/prebuilds" + New-Item -ItemType Directory -Force -Path $dst | Out-Null + Copy-Item -Recurse -Force "${{ runner.temp }}\prebuilds-staging\*" $dst + Write-Host "Prebuilds moved from staging area" + Get-ChildItem -Recurse $dst | Select-Object FullName | Format-Table -AutoSize + - name: Download prebuilds from package if: ${{ inputs.prebuild_package }} working-directory: packages/translation-nmtcpp diff --git a/.github/workflows/integration-test-tts-onnx.yml b/.github/workflows/integration-test-tts-onnx.yml index 0e243ea929..1d553fad75 100644 --- a/.github/workflows/integration-test-tts-onnx.yml +++ b/.github/workflows/integration-test-tts-onnx.yml @@ -188,9 +188,32 @@ jobs: if: ${{ !inputs.prebuild_package }} uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # 8.0.1 with: - path: ${{ inputs.workdir }}/prebuilds + path: ${{ runner.temp }}/prebuilds-staging merge-multiple: true + - name: Move prebuilds from staging to workspace (Unix) + if: ${{ !inputs.prebuild_package && matrix.platform != 'win32' }} + shell: bash + run: | + mkdir -p ${{ inputs.workdir }}/prebuilds + cp -r ${{ runner.temp }}/prebuilds-staging/* ${{ inputs.workdir }}/prebuilds/ + echo "Prebuilds moved from staging area" + ls -la ${{ inputs.workdir }}/prebuilds/ + + # Windows path: bash cp -r mangles `${{ runner.temp }}` (= "C:\a\_temp") + # because Git Bash interprets `\a`/`\_` as escape sequences, so the + # source path becomes invalid and the copy silently no-ops. Use + # PowerShell Copy-Item with native Windows paths. + - name: Move prebuilds from staging to workspace (Windows) + if: ${{ !inputs.prebuild_package && matrix.platform == 'win32' }} + shell: powershell + run: | + $dst = "${{ inputs.workdir }}/prebuilds" + New-Item -ItemType Directory -Force -Path $dst | Out-Null + Copy-Item -Recurse -Force "${{ runner.temp }}\prebuilds-staging\*" $dst + Write-Host "Prebuilds moved from staging area" + Get-ChildItem -Recurse $dst | Select-Object FullName | Format-Table -AutoSize + - name: Download prebuilds from package if: ${{ inputs.prebuild_package }} working-directory: ${{ inputs.workdir }} @@ -415,9 +438,32 @@ jobs: if: ${{ !inputs.prebuild_package }} uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # 8.0.1 with: - path: ${{ inputs.workdir }}/prebuilds + path: ${{ runner.temp }}/prebuilds-staging merge-multiple: true + - name: Move prebuilds from staging to workspace (Unix) + if: ${{ !inputs.prebuild_package && matrix.platform != 'win32' }} + shell: bash + run: | + mkdir -p ${{ inputs.workdir }}/prebuilds + cp -r ${{ runner.temp }}/prebuilds-staging/* ${{ inputs.workdir }}/prebuilds/ + echo "Prebuilds moved from staging area" + ls -la ${{ inputs.workdir }}/prebuilds/ + + # Windows path: bash cp -r mangles `${{ runner.temp }}` (= "C:\a\_temp") + # because Git Bash interprets `\a`/`\_` as escape sequences, so the + # source path becomes invalid and the copy silently no-ops. Use + # PowerShell Copy-Item with native Windows paths. + - name: Move prebuilds from staging to workspace (Windows) + if: ${{ !inputs.prebuild_package && matrix.platform == 'win32' }} + shell: powershell + run: | + $dst = "${{ inputs.workdir }}/prebuilds" + New-Item -ItemType Directory -Force -Path $dst | Out-Null + Copy-Item -Recurse -Force "${{ runner.temp }}\prebuilds-staging\*" $dst + Write-Host "Prebuilds moved from staging area" + Get-ChildItem -Recurse $dst | Select-Object FullName | Format-Table -AutoSize + - name: Download prebuilds from package (Unix) if: ${{ inputs.prebuild_package && matrix.platform != 'win32' }} working-directory: ${{ inputs.workdir }} diff --git a/.github/workflows/publish-sdk.yml b/.github/workflows/publish-sdk.yml index 61624bcfef..74eff676f8 100644 --- a/.github/workflows/publish-sdk.yml +++ b/.github/workflows/publish-sdk.yml @@ -331,7 +331,15 @@ jobs: uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # 8.0.1 with: name: dist - path: ${{ env.WORKDIR }}/dist/ + path: ${{ runner.temp }}/dist-staging + + - name: Move dist from staging to workspace + shell: bash + run: | + mkdir -p ${{ env.WORKDIR }}/dist + cp -r ${{ runner.temp }}/dist-staging/. ${{ env.WORKDIR }}/dist/ + echo "Dist moved from staging area" + ls -la ${{ env.WORKDIR }}/dist/ - name: Modify package name for branch-based test publishing working-directory: ${{ env.WORKDIR }} @@ -408,7 +416,15 @@ jobs: uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # 8.0.1 with: name: dist - path: ${{ env.WORKDIR }}/dist/ + path: ${{ runner.temp }}/dist-staging + + - name: Move dist from staging to workspace + shell: bash + run: | + mkdir -p ${{ env.WORKDIR }}/dist + cp -r ${{ runner.temp }}/dist-staging/. ${{ env.WORKDIR }}/dist/ + echo "Dist moved from staging area" + ls -la ${{ env.WORKDIR }}/dist/ - name: Publish to NPM Package Registry id: publish