-
Notifications
You must be signed in to change notification settings - Fork 50
44 lines (38 loc) · 1.36 KB
/
check-manifests.yml
File metadata and controls
44 lines (38 loc) · 1.36 KB
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
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
---
name: Check Manifests
on:
pull_request:
types: [opened, synchronize, reopened]
paths:
- .github/workflows/check-manifests.yml
- toolkit/resources/manifests/package/toolchain**
- toolkit/resources/manifests/package/pkggen_core**
- '**.spec'
permissions: read-all
jobs:
build:
name: Check Manifests
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
with:
persist-credentials: false
# This PR runner uses an older Ubuntu with rpm version 4.17, which doesn't understand some newer macros like %bcond
- name: Define missing rpm macros
run: |
if [[ -n $(rpm --eval '%bcond test 1') ]]; then
echo '%bcond() %[ (%{2}) ? "%{expand:%%bcond_without %{1}}" : "%{expand:%%bcond_with %{1}}" ]' > ~/.rpmmacros
fi
- name: Check x86_64 manifests
run: |
echo ##########
echo "Ensure toolchain and pkggen manifests (./toolkit/resources/manifests/package/*) match the versions in the .spec files"
echo "Run './scripts/toolchain/check_manifests.sh -a \"x86_64\"' to validate locally"
echo ##########
pushd toolkit
./scripts/toolchain/check_manifests.sh -a "x86_64"
popd
shell: bash