generated from ni/github-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 2
98 lines (83 loc) · 3.86 KB
/
test-and-build-icon-editor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
name: Build LabVIEW Project
on:
pull_request_target:
types: [opened, synchronize, reopened]
workflow_dispatch:
jobs:
build:
name: Build LabVIEW
runs-on: windows-latest
env:
RELATIVE_PATH: ${{ github.workspace }}
SCRIPTS_PATH: ${{ github.workspace }}\.github\scripts\powershell
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Clean Up Old .lvlibp Files
shell: pwsh
run: |
$PluginsPath = "${{ env.RELATIVE_PATH }}\resource\plugins"
Write-Host "Cleaning up .lvlibp files in $PluginsPath..."
if (Test-Path -Path $PluginsPath) {
Get-ChildItem -Path $PluginsPath -Filter '*.lvlibp' | Remove-Item -Force -ErrorAction SilentlyContinue
Write-Host "Cleanup complete."
} else {
Write-Host "Plugins folder not found. Skipping cleanup."
}
- name: Set agent into development mode
shell: pwsh
working-directory: ${{ env.SCRIPTS_PATH }}
run: |
.\Set_Development_Mode.ps1 -RelativePath "${{ env.RELATIVE_PATH }}"
- name: Apply Dependencies 2021 (32-bit)
shell: pwsh
working-directory: ${{ env.SCRIPTS_PATH }}
run: |
.\Applyvipc.ps1 -MinimumSupportedLVVersion 2021 -SupportedBitness 32 -RelativePath "${{ env.RELATIVE_PATH }}" -VIPCPath "Tooling\deployment\Dependencies.vipc" -VIP_LVVersion 2021
- name: Run Unit Tests 2021 (32-bit)
shell: pwsh
working-directory: ${{ env.SCRIPTS_PATH }}
run: |
.\RunUnitTests.ps1 -MinimumSupportedLVVersion 2021 -SupportedBitness 32 -RelativePath "${{ env.RELATIVE_PATH }}"
- name: Build LV Library 2021 (32-bit)
shell: pwsh
working-directory: ${{ env.SCRIPTS_PATH }}
run: |
.\Build_lvlibp.ps1 -MinimumSupportedLVVersion 2021 -SupportedBitness 32 -RelativePath "${{ env.RELATIVE_PATH }}"
- name: Rename File After Build 2021 (32-bit)
shell: pwsh
working-directory: ${{ env.SCRIPTS_PATH }}
run: |
$CurrentFile = "${{ env.RELATIVE_PATH }}\resource\plugins\lv_icon.lvlibp"
.\Rename-File.ps1 -CurrentFilename $CurrentFile -NewFilename "lv_icon_x86.lvlibp"
- name: Apply Dependencies 2021 (64-bit)
shell: pwsh
working-directory: ${{ env.SCRIPTS_PATH }}
run: |
.\Applyvipc.ps1 -MinimumSupportedLVVersion 2021 -SupportedBitness 64 -RelativePath "${{ env.RELATIVE_PATH }}" -VIPCPath "Tooling\deployment\Dependencies.vipc" -VIP_LVVersion 2021
- name: Run Unit Tests 2021 (64-bit)
shell: pwsh
working-directory: ${{ env.SCRIPTS_PATH }}
run: |
.\RunUnitTests.ps1 -MinimumSupportedLVVersion 2021 -SupportedBitness 64 -RelativePath "${{ env.RELATIVE_PATH }}"
- name: Build LV Library 2021 (64-bit)
shell: pwsh
working-directory: ${{ env.SCRIPTS_PATH }}
run: |
.\Build_lvlibp.ps1 -MinimumSupportedLVVersion 2021 -SupportedBitness 64 -RelativePath "${{ env.RELATIVE_PATH }}"
- name: Rename File After Build 2021 (64-bit)
shell: pwsh
working-directory: ${{ env.SCRIPTS_PATH }}
run: |
$CurrentFile = "${{ env.RELATIVE_PATH }}\resource\plugins\lv_icon.lvlibp"
.\Rename-File.ps1 -CurrentFilename $CurrentFile -NewFilename "lv_icon_x64.lvlibp"
- name: Build VI Package 2021 (64-bit)
shell: pwsh
working-directory: ${{ env.SCRIPTS_PATH }}
run: |
.\build_vip.ps1 -SupportedBitness 64 -RelativePath "${{ env.RELATIVE_PATH }}" -VIPBPath "Tooling\deployment\NI Icon editor.vipb" -VIP_LVVersion 2021 -MinimumSupportedLVVersion 2021
- name: Close LabVIEW 2021 (64-bit)
shell: pwsh
working-directory: ${{ env.SCRIPTS_PATH }}
run: |
.\Close_LabVIEW.ps1 -MinimumSupportedLVVersion 2021 -SupportedBitness 64