Skip to content

Commit a9afb94

Browse files
authored
Update main.yml
1 parent 59b9581 commit a9afb94

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,32 @@ jobs:
4040
/d:sonar.host.url="$env:SONAR_HOST_URL" `
4141
/d:sonar.token="$env:SONAR_TOKEN"
4242
43+
- name: Copy UCNL libs into project workspace
44+
shell: powershell
45+
run: |
46+
# RUNNER_WORKSPACE = C:\actions-runner\_work\AzimuthConsole
47+
$projectWS = $env:RUNNER_WORKSPACE
48+
$rootWS = Split-Path $projectWS -Parent # C:\actions-runner\_work
49+
50+
$src = Join-Path $rootWS 'UCNLLibs'
51+
$dst = Join-Path $projectWS 'UCNLLibs'
52+
53+
Write-Host "Source: $src"
54+
Write-Host "Destination: $dst"
55+
56+
if (-not (Test-Path $src)) {
57+
Write-Error "UCNLLibs folder not found at $src"
58+
exit 1
59+
}
60+
61+
New-Item -ItemType Directory -Path $dst -Force | Out-Null
62+
Copy-Item -Path "$src\*" -Destination $dst -Recurse -Force
63+
64+
Write-Host "Copied UCNL libs:"
65+
Get-ChildItem $dst
66+
67+
68+
4369
- name: Build AzimuthConsole
4470
shell: powershell
4571
working-directory: src

0 commit comments

Comments
 (0)