chore: remove local artifact inputs
This commit is contained in:
parent
4059d7a7ec
commit
76dfe027ab
59
.github/workflows/autoqa-reliability.yml
vendored
59
.github/workflows/autoqa-reliability.yml
vendored
@ -4,23 +4,23 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
source_type:
|
source_type:
|
||||||
description: 'App source type (url or local)'
|
description: 'App source type (url)'
|
||||||
required: true
|
required: true
|
||||||
type: choice
|
type: choice
|
||||||
options: [url, local]
|
options: [url]
|
||||||
default: url
|
default: url
|
||||||
jan_app_windows_source:
|
jan_app_windows_source:
|
||||||
description: 'Windows installer URL or local path (used when source_type=url or to select artifact)'
|
description: 'Windows installer URL path (used when source_type=url or to select artifact)'
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
default: 'https://catalog.jan.ai/windows/Jan_0.6.8_x64-setup.exe'
|
default: 'https://catalog.jan.ai/windows/Jan_0.6.8_x64-setup.exe'
|
||||||
jan_app_ubuntu_source:
|
jan_app_ubuntu_source:
|
||||||
description: 'Ubuntu .deb URL or local path'
|
description: 'Ubuntu .deb URL path'
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
default: 'https://delta.jan.ai/nightly/Jan-nightly_0.6.4-728_amd64.deb'
|
default: 'https://delta.jan.ai/nightly/Jan-nightly_0.6.4-728_amd64.deb'
|
||||||
jan_app_macos_source:
|
jan_app_macos_source:
|
||||||
description: 'macOS .dmg URL or local path'
|
description: 'macOS .dmg URL path'
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
default: 'https://delta.jan.ai/nightly/Jan-nightly_0.6.4-728_universal.dmg'
|
default: 'https://delta.jan.ai/nightly/Jan-nightly_0.6.4-728_universal.dmg'
|
||||||
@ -45,21 +45,6 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
default: 'tests/base/settings/app-data.txt'
|
default: 'tests/base/settings/app-data.txt'
|
||||||
artifact_name_windows:
|
|
||||||
description: 'Windows artifact name (only for source_type=local)'
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
default: ''
|
|
||||||
artifact_name_ubuntu:
|
|
||||||
description: 'Ubuntu artifact name (only for source_type=local)'
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
default: ''
|
|
||||||
artifact_name_macos:
|
|
||||||
description: 'macOS artifact name (only for source_type=local)'
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
default: ''
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
reliability-windows:
|
reliability-windows:
|
||||||
@ -77,13 +62,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: '3.13'
|
python-version: '3.13'
|
||||||
|
|
||||||
- name: Download artifact (if source_type is local)
|
|
||||||
if: inputs.source_type == 'local'
|
|
||||||
uses: actions/download-artifact@v4
|
|
||||||
with:
|
|
||||||
name: ${{ inputs.artifact_name_windows }}
|
|
||||||
path: ${{ runner.temp }}/windows-artifact
|
|
||||||
|
|
||||||
- name: Clean existing Jan installations
|
- name: Clean existing Jan installations
|
||||||
shell: powershell
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
@ -92,26 +70,13 @@ jobs:
|
|||||||
- name: Download/Prepare Jan app
|
- name: Download/Prepare Jan app
|
||||||
shell: powershell
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
if ("${{ inputs.source_type }}" -eq "local") {
|
.\autoqa\scripts\windows_download.ps1 `
|
||||||
$exeFile = Get-ChildItem -Path "${{ runner.temp }}/windows-artifact" -Recurse -Filter "*.exe" | Select-Object -First 1
|
-WorkflowInputUrl "${{ inputs.jan_app_windows_source }}" `
|
||||||
if ($exeFile) {
|
-WorkflowInputIsNightly "${{ inputs.is_nightly }}" `
|
||||||
Write-Host "[SUCCESS] Found local installer: $($exeFile.FullName)"
|
-RepoVariableUrl "${{ vars.JAN_APP_URL }}" `
|
||||||
Copy-Item -Path $exeFile.FullName -Destination "$env:TEMP\jan-installer.exe" -Force
|
-RepoVariableIsNightly "${{ vars.IS_NIGHTLY }}" `
|
||||||
Write-Host "[SUCCESS] Installer copied to: $env:TEMP\jan-installer.exe"
|
-DefaultUrl "$env:DEFAULT_JAN_APP_URL" `
|
||||||
echo "IS_NIGHTLY=${{ inputs.is_nightly }}" >> $env:GITHUB_ENV
|
-DefaultIsNightly "$env:DEFAULT_IS_NIGHTLY"
|
||||||
} else {
|
|
||||||
Write-Error "[FAILED] No .exe file found in artifact"
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
.\autoqa\scripts\windows_download.ps1 `
|
|
||||||
-WorkflowInputUrl "${{ inputs.jan_app_windows_source }}" `
|
|
||||||
-WorkflowInputIsNightly "${{ inputs.is_nightly }}" `
|
|
||||||
-RepoVariableUrl "${{ vars.JAN_APP_URL }}" `
|
|
||||||
-RepoVariableIsNightly "${{ vars.IS_NIGHTLY }}" `
|
|
||||||
-DefaultUrl "$env:DEFAULT_JAN_APP_URL" `
|
|
||||||
-DefaultIsNightly "$env:DEFAULT_IS_NIGHTLY"
|
|
||||||
}
|
|
||||||
|
|
||||||
- name: Install Jan app
|
- name: Install Jan app
|
||||||
shell: powershell
|
shell: powershell
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user