mirror of
https://github.com/VirtualDrivers/Virtual-Display-Driver.git
synced 2026-12-06 15:11:25 +09:00
Workflow update/test.
This commit is contained in:
1 parent
cae46b429d
commit
0b8f896008
3 files changed
+100
-2
No files matched your search
@@ -115,8 +115,17 @@ jobs:
|
||||
ForEach-Object { $_ -replace '-x64', '-arm64' } |
|
||||
Set-Content "inno-setup\Setup.iss"
|
||||
|
||||
if (Test-Path "inno-setup\input\Companion\VDDSysTray.exe") {Remove-Item "inno-setup\input\Companion\VDDSysTray.exe"}
|
||||
copy "inno-setup\input\Companion\arm64\VDDSysTray.exe" "inno-setup\input\Companion\"
|
||||
# VDDSysTray has been replaced with VDDControl
|
||||
if (Test-Path "inno-setup\input\Companion\VDDControl.exe") {Remove-Item "inno-setup\input\Companion\VDDControl.exe"}
|
||||
|
||||
# Check if ARM64 VDDControl exists before copying
|
||||
if (Test-Path "inno-setup\input\Companion\arm64\VDDControl.exe") {
|
||||
copy "inno-setup\input\Companion\arm64\VDDControl.exe" "inno-setup\input\Companion\"
|
||||
Write-Host "Copied ARM64 VDDControl.exe"
|
||||
} else {
|
||||
Write-Host "Warning: ARM64 VDDControl.exe not found in inno-setup\input\Companion\arm64\"
|
||||
dir "inno-setup\input\Companion" -Recurse
|
||||
}
|
||||
}
|
||||
|
||||
- name: Compile Installer
|
||||
|
||||
@@ -141,3 +141,89 @@ jobs:
|
||||
|
||||
- name: Verify Built Artifacts
|
||||
run: dir 'Virtual Display Driver (HDR)\${{ matrix.platform }}\${{ matrix.configuration }}\MttVDD'
|
||||
|
||||
prepare_installer:
|
||||
runs-on: windows-latest
|
||||
needs: build
|
||||
strategy:
|
||||
matrix:
|
||||
configuration: [Release]
|
||||
platform: [x64, ARM64]
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Download artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: Built-Driver-${{ matrix.configuration }}-${{ matrix.platform }}
|
||||
path: SignedArtifacts
|
||||
|
||||
- name: Prepare Setup Repository
|
||||
run: |
|
||||
git clone https://${{ secrets.READ_REPO }}@github.com/VirtualDisplay/Virtual-Driver-Installer.git inno-setup
|
||||
|
||||
- name: Prepare Setup
|
||||
run: |
|
||||
mkdir -p inno-setup\input
|
||||
copy "SignedArtifacts\*" inno-setup\input\
|
||||
$platform = "${{ matrix.platform }}"
|
||||
|
||||
# Display directory contents for debugging
|
||||
Write-Host "Contents of SignedArtifacts directory:"
|
||||
dir "SignedArtifacts"
|
||||
|
||||
Write-Host "Contents of inno-setup\input directory after copy:"
|
||||
dir "inno-setup\input"
|
||||
|
||||
# Check if Companion directory exists before attempting operations
|
||||
if (Test-Path "inno-setup\input\Companion") {
|
||||
Write-Host "Contents of Companion directory:"
|
||||
dir "inno-setup\input\Companion" -Recurse
|
||||
} else {
|
||||
Write-Host "Companion directory not found"
|
||||
}
|
||||
|
||||
# Set release tag
|
||||
$releaseTag = (Get-Date).ToString('yy.MM.dd')
|
||||
(Get-Content "inno-setup\Setup.iss") |
|
||||
ForEach-Object { $_ -replace '1.0.0', $releaseTag } |
|
||||
Set-Content "inno-setup\Setup.iss"
|
||||
|
||||
# ARM64-specific handling
|
||||
if ($platform -eq 'ARM64') {
|
||||
(Get-Content "inno-setup\Setup.iss") |
|
||||
ForEach-Object { $_ -replace 'x64compatible', 'arm64' } |
|
||||
Set-Content "inno-setup\Setup.iss"
|
||||
|
||||
(Get-Content "inno-setup\Setup.iss") |
|
||||
ForEach-Object { $_ -replace '-x64', '-arm64' } |
|
||||
Set-Content "inno-setup\Setup.iss"
|
||||
|
||||
# VDDSysTray has been replaced with VDDControl
|
||||
if (Test-Path "inno-setup\input\Companion\VDDControl.exe") {
|
||||
Remove-Item "inno-setup\input\Companion\VDDControl.exe"
|
||||
Write-Host "Removed x64 VDDControl.exe"
|
||||
}
|
||||
|
||||
# Check if ARM64 VDDControl exists before copying
|
||||
if (Test-Path "inno-setup\input\Companion\arm64\VDDControl.exe") {
|
||||
copy "inno-setup\input\Companion\arm64\VDDControl.exe" "inno-setup\input\Companion\"
|
||||
Write-Host "Copied ARM64 VDDControl.exe"
|
||||
} else {
|
||||
Write-Host "Warning: ARM64 VDDControl.exe not found in expected location"
|
||||
dir "inno-setup\input\Companion" -Recurse
|
||||
}
|
||||
}
|
||||
|
||||
- name: Compile Installer
|
||||
uses: Minionguyjpro/Inno-Setup-Action@v1.2.2
|
||||
with:
|
||||
path: inno-setup\Setup.iss
|
||||
options: /O+
|
||||
|
||||
- name: Upload Installer as artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: Installer-${{ matrix.configuration }}-${{ matrix.platform }}
|
||||
path: inno-setup\output\*.exe
|
||||
Reference in new issue
Block a user