Skip to content

Commit 1d37126

Browse files
test
1 parent 0d6278b commit 1d37126

File tree

2 files changed

+26
-3
lines changed

2 files changed

+26
-3
lines changed

.github/workflows/nrp-build.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Build Azure Policy Packages
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
7+
jobs:
8+
package:
9+
name: Package
10+
uses: ./.github/workflows/package-build.yml
11+
strategy:
12+
matrix:
13+
target:
14+
[
15+
{ os: ubuntu, version: 14.04, arch: amd64, dist: trusty, package-type: DEB },
16+
]
17+
with:
18+
target: ${{ matrix.target.os }}-${{ matrix.target.version }}
19+
arch: ${{ matrix.target.arch }}
20+
artifact: policy-packages
21+
machine-config: true
22+
release: true

.github/workflows/package-build.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ on:
2424
package-type:
2525
description: The type of package to build (deb | rpm).
2626
type: string
27-
required: true
2827
test:
2928
description: Include test collateral in the artifact.
3029
type: boolean
@@ -111,18 +110,20 @@ jobs:
111110
cmd: cmake --build . --config ${{ env.BUILD_TYPE }} --parallel
112111

113112
- name: Run cpack
113+
if: ${{ inputs.package-type }}
114114
uses: ./.github/actions/container-exec
115115
with:
116116
container: ${{ steps.container.outputs.id }}
117117
working-directory: ${{ env.MOUNT }}/build
118118
cmd: cpack -G ${{ inputs.package-type }}
119119

120120
- name: Binary footprint delta validation
121+
if: ${{ inputs.package-type }}
121122
uses: ./.github/actions/footprint-check
122123
with:
123124
allowedDelta: 10
124-
distroName: ${{ matrix.os }}
125-
arch: ${{ matrix.variant.arch }}
125+
distroName: ${{ inputs.target }}
126+
arch: ${{ inputs.arch }}
126127
package-type: ${{ inputs.package-type }}
127128

128129
- uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)