Files
Dev/.gitea/workflows/install.yaml
kalugin66 22ea321feb
Some checks failed
Install MSI on Specific Runner / install_single (push) Successful in 1s
Install MSI on Specific Runner / deploy_all (K4012-KOA) (push) Has been cancelled
Обновить .gitea/workflows/install.yaml
2026-04-16 11:44:53 +05:00

28 lines
1.2 KiB
YAML

name: Install MSI on Specific Runner
on: [push]
jobs:
# Вариант 1: Запуск только на одном (или первом свободном) self-hosted раннере
install_single:
runs-on: self-hosted
steps:
- name: Install MSI and Create Log
shell: powershell
run: |
Start-Process msiexec.exe -ArgumentList "/i C:\install\MAX.msi /qn /norestart" -Wait
"Installed successfully on $(hostname) at $(Get-Date)" | Out-File -FilePath "C:\install\git_MAX.txt" -Encoding utf8
# Вариант 2: Параллельный запуск на конкретном списке машин (Матрица)
deploy_all:
strategy:
matrix:
target_runner: [K4012-KOA]
runs-on: ${{ matrix.target_runner }}
steps:
- name: Install MSI and Create Log
shell: powershell
run: |
# Используем другой файл (git_MAX2.txt), как вы указали
Start-Process msiexec.exe -ArgumentList "/i C:\install\MAX.msi /qn /norestart" -Wait
"Installed successfully on $(hostname) at $(Get-Date)" | Out-File -FilePath "C:\install\git_MAX2.txt" -Encoding utf8