2023-12-13 13:42:25 +03:00
|
|
|
name: pkg
|
|
|
|
run-name: pkging ${{inputs.pkg}}
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_call:
|
|
|
|
inputs:
|
|
|
|
pkg:
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
dry-run:
|
|
|
|
type: boolean
|
|
|
|
default: false
|
|
|
|
|
|
|
|
jobs:
|
2023-12-13 19:47:32 +03:00
|
|
|
plan:
|
2023-12-13 13:42:25 +03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
outputs:
|
|
|
|
matrix: ${{ steps.matrix.outputs.matrix }}
|
2023-12-15 21:32:55 +03:00
|
|
|
pkg: ${{ steps.id.outputs.pkg-json }}
|
2023-12-13 13:42:25 +03:00
|
|
|
steps:
|
|
|
|
- uses: pkgxdev/setup@v2
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- run: .github/scripts/get-matrix.ts ${{ inputs.pkg }}
|
|
|
|
id: matrix
|
2023-12-15 21:32:55 +03:00
|
|
|
- uses: pkgxdev/brewkit/id@v1
|
|
|
|
id: id
|
|
|
|
with:
|
|
|
|
pkg: ${{ inputs.pkg }}
|
2023-12-13 13:42:25 +03:00
|
|
|
|
2023-12-13 19:47:32 +03:00
|
|
|
pkg:
|
|
|
|
needs: plan
|
2023-12-13 13:42:25 +03:00
|
|
|
name: ${{matrix.platform.tinyname}}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2023-12-13 19:47:32 +03:00
|
|
|
platform: ${{ fromJSON(needs.plan.outputs.matrix) }}
|
2023-12-13 13:42:25 +03:00
|
|
|
uses: ./.github/workflows/pkg-platform.yml
|
2023-12-13 19:47:32 +03:00
|
|
|
permissions:
|
|
|
|
issues: write
|
2023-12-13 13:42:25 +03:00
|
|
|
with:
|
2023-12-15 21:32:55 +03:00
|
|
|
pkg: ${{ needs.plan.outputs.pkg }}
|
2023-12-13 13:42:25 +03:00
|
|
|
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 }}
|
2023-12-13 19:47:32 +03:00
|
|
|
tinyname: ${{ matrix.platform.tinyname }}
|
2023-12-13 13:42:25 +03:00
|
|
|
secrets: inherit
|