Skip to content

Commit 2aa56d8

Browse files
Repo File Sync: synced file(s) with microsoft/mu_devops
Signed-off-by: Project Mu UEFI Bot <uefibot@microsoft.com>
1 parent cf5dadb commit 2aa56d8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/codeql.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,10 @@ jobs:
6767
6868
packages = [d for d in os.listdir() if d.strip().lower().endswith('pkg')]
6969
70-
# Ensure the package can actually be built
71-
for package in packages:
72-
if not any(file.endswith('.dsc') for file in os.listdir(package)):
70+
# Ensure the package can actually be built for IA32 or X64
71+
for package in list(packages):
72+
dsc = [os.path.join(package, f) for f in os.listdir(package) if f.endswith('.dsc')]
73+
if not any('IA32' in l or 'X64' in l for d in dsc for l in open(d) if 'SUPPORTED_ARCHITECTURES' in l):
7374
packages.remove(package)
7475
7576
packages.sort()

0 commit comments

Comments
 (0)