-
Notifications
You must be signed in to change notification settings - Fork 119
59 lines (56 loc) · 1.51 KB
/
pkg.yml
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: pkg
run-name: pkging ${{inputs.pkg}}
on:
workflow_call:
inputs:
pkg:
required: true
type: string
dry-run:
type: boolean
default: false
complain:
type: boolean
default: false
invalidate-cloudfront:
type: boolean
default: true
jobs:
plan:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.matrix.outputs.matrix }}
pkg: ${{ steps.id.outputs.pkg-json }}
steps:
- uses: pkgxdev/setup@v2
with:
version: 1.1.6
- uses: actions/checkout@v4
- run: .github/scripts/get-matrix.ts ${{ inputs.pkg }}
id: matrix
- uses: pkgxdev/brewkit/id@v1
id: id
with:
pkg: ${{ inputs.pkg }}
pkg:
needs: plan
name: ${{matrix.platform.tinyname}}
strategy:
fail-fast: false
matrix:
platform: ${{ fromJSON(needs.plan.outputs.matrix) }}
uses: ./.github/workflows/pkg-platform.yml
permissions:
issues: write
with:
pkg: ${{ needs.plan.outputs.pkg }}
name: ${{ matrix.platform.name }}
os: ${{ toJSON(matrix.platform.os) }}
container: ${{ matrix.platform.container }}
test-os: ${{ toJSON(matrix.platform.test-os) }}
test-container: ${{ toJSON(matrix.platform.test-container) }}
dry-run: ${{ inputs.dry-run }}
tinyname: ${{ matrix.platform.tinyname }}
complain: ${{ inputs.complain }}
invalidate-cloudfront: ${{ inputs.invalidate-cloudfront }}
secrets: inherit