Skip to content

Commit 13c7d39

Browse files
committed
wip
1 parent 3b957ff commit 13c7d39

File tree

1 file changed

+32
-27
lines changed

1 file changed

+32
-27
lines changed

.github/workflows/test_modified_ports.yml

+32-27
Original file line numberDiff line numberDiff line change
@@ -26,47 +26,52 @@ jobs:
2626
- 'arm64-android'
2727
include:
2828
- triplet: 'x86-windows'
29-
pool: windows
29+
use-windows: true
3030
extra-checks: true
3131
- triplet: 'x64-windows'
32-
pool: windows
32+
use-windows: true
3333
- triplet: 'x64-windows-static'
34-
pool: windows
34+
use-windows: true
3535
- triplet: 'x64-windows-static-md'
36-
pool: windows
36+
use-windows: true
3737
- triplet: 'x64-uwp'
38-
pool: windows
38+
use-windows: true
3939
- triplet: 'arm64-windows'
40-
pool: windows
40+
use-windows: true
4141
- triplet: 'arm64-uwp'
42-
pool: windows
42+
use-windows: true
4343
- triplet: 'arm64-osx'
44-
pool: macOS
44+
use-macos: true
4545
- triplet: 'x64-osx'
46-
pool: macOS
46+
use-macos: true
4747
- triplet: 'x64-linux'
48-
pool: linux
48+
use-linux: true
4949
- triplet: 'arm-neon-android'
50-
pool: android
50+
use-android: true
5151
- triplet: 'x64-android'
52-
pool: android
52+
use-android: true
5353
- triplet: 'arm64-android'
54-
pool: android
55-
- pool: windows
54+
use-android: true
55+
###############################################
56+
- use-windows: true
57+
pool: windows
5658
onees: vcpkg-windows-wus
5759
artifact-staging: "D:\\artifactstaging"
5860
vcpkg-downloads: "D:\\downloads"
5961
working-root: "D:\\"
60-
- pool: macOS
62+
- use-macos: true
63+
pool: macOS
6164
onees: vcpkg-windows-wus # FIXME: This should be the macOS pool
6265
artifact-staging: /mnt/vcpkg-ci/artifactstaging # FIXME: Are these paths reasonable?
6366
vcpkg-downloads: /mnt/vcpkg-ci/downloads
6467
working-root: /mnt/vcpkg-ci
65-
- pool: linux
68+
- use-linux: true
69+
pool: linux
6670
onees: vcpkg-windows-wus # FIXME: This should be the linux pool
6771
artifact-staging: /mnt/vcpkg-ci/artifactstaging
6872
working-root: /mnt/vcpkg-ci
69-
- pool: android
73+
- use-android: true
74+
pool: android
7075
onees: vcpkg-windows-wus # FIXME: This should be the android pool
7176
artifact-staging: /mnt/vcpkg-ci/artifactstaging
7277
working-root: /mnt/vcpkg-ci
@@ -82,19 +87,19 @@ jobs:
8287
- name: testing testing testing
8388
run: echo "The value of matrix.pool is ${{ matrix.pool }}"
8489
- name: Block non-Windows (for testing)
85-
if: ${{ matrix.pool != 'windows' }}
90+
if: ${{ success() && !matrix.use-windows }}
8691
run: exit 1
8792
- name: Checkout (Windows)
8893
uses: actions/checkout@v4
89-
if: ${{ matrix.pool == 'windows' }}
94+
if: ${{ success() && matrix.use-windows }}
9095
env:
9196
PATH: c:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\cmd;$PATH
9297
with:
9398
# fetch-depth 50 tries to ensure we capture the whole history of the branch
9499
fetch-depth: 50
95100
- name: Checkout (Non-Windows)
96101
uses: actions/checkout@v4
97-
if: ${{ matrix.pool != 'windows' }}
102+
if: ${{ success() && !matrix.use-windows }}
98103
with:
99104
# fetch-depth 50 tries to ensure we capture the whole history of the branch
100105
fetch-depth: 50
@@ -105,20 +110,20 @@ jobs:
105110
subscription-id: 7fcb00fa-a761-49de-8a2f-d67190e62882
106111
tenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47
107112
- name: Bootstrap (Windows)
108-
if: ${{ matrix.pool == 'windows' }}
113+
if: ${{ success() && matrix.use-windows }}
109114
run: ./scripts/bootstrap.ps1
110115
- name: Bootstrap (Non-Windows)
111-
if: ${{ matrix.pool != 'windows' }}
116+
if: ${{ success() && !matrix.use-windows }}
112117
run: ./scripts/bootstrap.sh
113118
- name: Format Manifests
114-
if: ${{ matrix.extra-checks }}
119+
if: ${{ success() && matrix.extra-checks }}
115120
run: ./vcpkg.exe format-manifest --all
116121
- name: Create Format Manifest Diff
117-
if: ${{ matrix.extra-checks }}
122+
if: ${{ success() && matrix.extra-checks }}
118123
run: ./scripts/azure-pipelines/Create-PRDiff.ps1 -DiffFile "${{ matrix.artifact-staging }}/format.diff"
119124
- name: 'Publish Artifact: Format Diff'
120125
uses: actions/upload-artifact@v4
121-
if: ${{ matrix.extra-checks && failure() }}
126+
if: ${{ failure() && !cancelled() && matrix.extra-checks }}
122127
with:
123128
name: 'format.diff'
124129
path: "${{ matrix.artifact-staging }}/format.diff"
@@ -162,13 +167,13 @@ jobs:
162167
retention-days: 7
163168
if-no-files-found: ignore
164169
- name: 'Build a file list for all packages'
165-
if: ${{ always() }}
170+
if: ${{ !cancelled() }}
166171
shell: pwsh
167172
run: |
168173
& $(./vcpkg fetch python3) ./scripts/file_script.py "${{ matrix.working-root }}/installed/vcpkg/info/"
169174
- name: 'Publish Artifact: file lists for ${{ matrix.triplet }}'
170175
uses: actions/upload-artifact@v4
171-
if: ${{ always() }}
176+
if: ${{ !cancelled() }}
172177
with:
173178
name: 'file lists for ${{ matrix.triplet }}'
174179
path: scripts/list_files

0 commit comments

Comments
 (0)