1- trigger : none # Entspricht 'workflow_dispatch'
1+ trigger : none
22
3- name : Build-self-hosted-O64
4-
5- pool :
6- name : ' Self-hosted Runner'
7- demands :
8- - Agent.OS -equals Windows_NT
3+ name : Build-self-hosted-MultiBit
94
105resources :
116 repositories :
@@ -15,37 +10,69 @@ resources:
1510 ref : refs/heads/main
1611 endpoint : AccessCodeLib
1712
18- steps :
19- - checkout : self
20- persistCredentials : true
21-
22- - checkout : msaccess-vcs-build
23-
24- - task : PowerShell@2
25- displayName : ' Build Access file (accdb/accde)'
26- inputs :
27- targetType : inline
28- pwsh : true
29- script : |
30- $sourceDir = "BuildAccdeExample\source"
31- $targetDir = "bin"
32- $compile = "true"
33- $appConfig = "BuildAccdeExample/deployment/Application-Config.json"
34- $vcsUrl = "https://api.github.com/repos/josef-poetzl/msaccess-vcs-addin/releases/latest"
35-
36- $scriptPath = "$(Build.SourcesDirectory)\msaccess-vcs-build\Build.ps1"
37- Write-Host "Running script at $scriptPath"
38-
39- if (-Not (Test-Path $scriptPath)) {
40- Write-Error "Build.ps1 not found at $scriptPath"
41- exit 1
42- }
43-
44- & $scriptPath -SourceDir $sourceDir -TargetDir $targetDir -Compile $compile -AppConfigFile "$appConfig" -vcsUrl $vcsUrl
45-
46- - task : PublishBuildArtifacts@1
47- displayName : ' Upload Build Artifact'
48- inputs :
49- PathtoPublish : ' bin'
50- ArtifactName : ' Binary files'
51- publishLocation : ' Container'
13+ jobs :
14+ - job : Build32bit
15+ displayName : ' Build 32-bit ACCDE'
16+ pool :
17+ name : ' Self-hosted Runner'
18+ demands :
19+ - Office-Bitness -equals 32
20+ steps :
21+ - checkout : self
22+ persistCredentials : true
23+
24+ - checkout : msaccess-vcs-build
25+
26+ - task : PowerShell@2
27+ displayName : ' Build 32-bit'
28+ inputs :
29+ targetType : inline
30+ pwsh : true
31+ script : |
32+ $sourceDir = "BuildAccdeExample\source"
33+ $targetDir = "bin32"
34+ $compile = "true"
35+ $appConfig = "BuildAccdeExample/deployment/Application-Config.json"
36+ $vcsUrl = "https://api.github.com/repos/josef-poetzl/msaccess-vcs-addin/releases/latest"
37+
38+ & "$(Build.SourcesDirectory)\msaccess-vcs-build\Build.ps1" -SourceDir $sourceDir -TargetDir $targetDir -Compile $compile -AppConfigFile "$appConfig" -vcsUrl $vcsUrl
39+
40+ - task : PublishBuildArtifacts@1
41+ displayName : ' Publish 32-bit ACCDE'
42+ inputs :
43+ PathtoPublish : ' bin32'
44+ ArtifactName : ' ACCDE 32-bit'
45+ publishLocation : ' Container'
46+
47+ - job : Build64bit
48+ displayName : ' Build 64-bit ACCDE'
49+ pool :
50+ name : ' Self-hosted Runner'
51+ demands :
52+ - Office-Bitness -equals 64
53+ steps :
54+ - checkout : self
55+ persistCredentials : true
56+
57+ - checkout : msaccess-vcs-build
58+
59+ - task : PowerShell@2
60+ displayName : ' Build 64-bit'
61+ inputs :
62+ targetType : inline
63+ pwsh : true
64+ script : |
65+ $sourceDir = "BuildAccdeExample\source"
66+ $targetDir = "bin64"
67+ $compile = "true"
68+ $appConfig = "BuildAccdeExample/deployment/Application-Config.json"
69+ $vcsUrl = "https://api.github.com/repos/josef-poetzl/msaccess-vcs-addin/releases/latest"
70+
71+ & "$(Build.SourcesDirectory)\msaccess-vcs-build\Build.ps1" -SourceDir $sourceDir -TargetDir $targetDir -Compile $compile -AppConfigFile "$appConfig" -vcsUrl $vcsUrl
72+
73+ - task : PublishBuildArtifacts@1
74+ displayName : ' Publish 64-bit ACCDE'
75+ inputs :
76+ PathtoPublish : ' bin64'
77+ ArtifactName : ' ACCDE 64-bit'
78+ publishLocation : ' Container'
0 commit comments