Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 24 additions & 1 deletion .github/workflows/integration-test-classification-ggml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
25 changes: 24 additions & 1 deletion .github/workflows/integration-test-llm-llamacpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
25 changes: 24 additions & 1 deletion .github/workflows/integration-test-ocr-onnx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
25 changes: 24 additions & 1 deletion .github/workflows/integration-test-translation-nmtcpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
50 changes: 48 additions & 2 deletions .github/workflows/integration-test-tts-onnx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand Down
20 changes: 18 additions & 2 deletions .github/workflows/publish-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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
Expand Down
Loading