@@ -26,47 +26,52 @@ jobs:
26
26
- ' arm64-android'
27
27
include :
28
28
- triplet : ' x86-windows'
29
- pool : windows
29
+ use-windows : true
30
30
extra-checks : true
31
31
- triplet : ' x64-windows'
32
- pool : windows
32
+ use-windows : true
33
33
- triplet : ' x64-windows-static'
34
- pool : windows
34
+ use-windows : true
35
35
- triplet : ' x64-windows-static-md'
36
- pool : windows
36
+ use-windows : true
37
37
- triplet : ' x64-uwp'
38
- pool : windows
38
+ use-windows : true
39
39
- triplet : ' arm64-windows'
40
- pool : windows
40
+ use-windows : true
41
41
- triplet : ' arm64-uwp'
42
- pool : windows
42
+ use-windows : true
43
43
- triplet : ' arm64-osx'
44
- pool : macOS
44
+ use-macos : true
45
45
- triplet : ' x64-osx'
46
- pool : macOS
46
+ use-macos : true
47
47
- triplet : ' x64-linux'
48
- pool : linux
48
+ use-linux : true
49
49
- triplet : ' arm-neon-android'
50
- pool : android
50
+ use-android : true
51
51
- triplet : ' x64-android'
52
- pool : android
52
+ use-android : true
53
53
- triplet : ' arm64-android'
54
- pool : android
55
- - pool : windows
54
+ use-android : true
55
+ # ##############################################
56
+ - use-windows : true
57
+ pool : windows
56
58
onees : vcpkg-windows-wus
57
59
artifact-staging : " D:\\ artifactstaging"
58
60
vcpkg-downloads : " D:\\ downloads"
59
61
working-root : " D:\\ "
60
- - pool : macOS
62
+ - use-macos : true
63
+ pool : macOS
61
64
onees : vcpkg-windows-wus # FIXME: This should be the macOS pool
62
65
artifact-staging : /mnt/vcpkg-ci/artifactstaging # FIXME: Are these paths reasonable?
63
66
vcpkg-downloads : /mnt/vcpkg-ci/downloads
64
67
working-root : /mnt/vcpkg-ci
65
- - pool : linux
68
+ - use-linux : true
69
+ pool : linux
66
70
onees : vcpkg-windows-wus # FIXME: This should be the linux pool
67
71
artifact-staging : /mnt/vcpkg-ci/artifactstaging
68
72
working-root : /mnt/vcpkg-ci
69
- - pool : android
73
+ - use-android : true
74
+ pool : android
70
75
onees : vcpkg-windows-wus # FIXME: This should be the android pool
71
76
artifact-staging : /mnt/vcpkg-ci/artifactstaging
72
77
working-root : /mnt/vcpkg-ci
@@ -82,19 +87,19 @@ jobs:
82
87
- name : testing testing testing
83
88
run : echo "The value of matrix.pool is ${{ matrix.pool }}"
84
89
- name : Block non-Windows (for testing)
85
- if : ${{ matrix.pool != ' windows' }}
90
+ if : ${{ success() && !matrix.use- windows }}
86
91
run : exit 1
87
92
- name : Checkout (Windows)
88
93
uses : actions/checkout@v4
89
- if : ${{ matrix.pool == ' windows' }}
94
+ if : ${{ success() && matrix.use- windows }}
90
95
env :
91
96
PATH : c:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\cmd;$PATH
92
97
with :
93
98
# fetch-depth 50 tries to ensure we capture the whole history of the branch
94
99
fetch-depth : 50
95
100
- name : Checkout (Non-Windows)
96
101
uses : actions/checkout@v4
97
- if : ${{ matrix.pool != ' windows' }}
102
+ if : ${{ success() && !matrix.use- windows }}
98
103
with :
99
104
# fetch-depth 50 tries to ensure we capture the whole history of the branch
100
105
fetch-depth : 50
@@ -105,20 +110,20 @@ jobs:
105
110
subscription-id : 7fcb00fa-a761-49de-8a2f-d67190e62882
106
111
tenant-id : 72f988bf-86f1-41af-91ab-2d7cd011db47
107
112
- name : Bootstrap (Windows)
108
- if : ${{ matrix.pool == ' windows' }}
113
+ if : ${{ success() && matrix.use- windows }}
109
114
run : ./scripts/bootstrap.ps1
110
115
- name : Bootstrap (Non-Windows)
111
- if : ${{ matrix.pool != ' windows' }}
116
+ if : ${{ success() && !matrix.use- windows }}
112
117
run : ./scripts/bootstrap.sh
113
118
- name : Format Manifests
114
- if : ${{ matrix.extra-checks }}
119
+ if : ${{ success() && matrix.extra-checks }}
115
120
run : ./vcpkg.exe format-manifest --all
116
121
- name : Create Format Manifest Diff
117
- if : ${{ matrix.extra-checks }}
122
+ if : ${{ success() && matrix.extra-checks }}
118
123
run : ./scripts/azure-pipelines/Create-PRDiff.ps1 -DiffFile "${{ matrix.artifact-staging }}/format.diff"
119
124
- name : ' Publish Artifact: Format Diff'
120
125
uses : actions/upload-artifact@v4
121
- if : ${{ matrix.extra-checks && failure() }}
126
+ if : ${{ failure() && !cancelled() && matrix.extra-checks }}
122
127
with :
123
128
name : ' format.diff'
124
129
path : " ${{ matrix.artifact-staging }}/format.diff"
@@ -162,13 +167,13 @@ jobs:
162
167
retention-days : 7
163
168
if-no-files-found : ignore
164
169
- name : ' Build a file list for all packages'
165
- if : ${{ always () }}
170
+ if : ${{ !cancelled () }}
166
171
shell : pwsh
167
172
run : |
168
173
& $(./vcpkg fetch python3) ./scripts/file_script.py "${{ matrix.working-root }}/installed/vcpkg/info/"
169
174
- name : ' Publish Artifact: file lists for ${{ matrix.triplet }}'
170
175
uses : actions/upload-artifact@v4
171
- if : ${{ always () }}
176
+ if : ${{ !cancelled () }}
172
177
with :
173
178
name : ' file lists for ${{ matrix.triplet }}'
174
179
path : scripts/list_files
0 commit comments