Set up conditional build matrix
This commit is contained in:
parent
30029877ab
commit
efb62b2603
1 changed files with 14 additions and 1 deletions
15
.github/workflows/build.yaml
vendored
15
.github/workflows/build.yaml
vendored
|
@ -6,12 +6,25 @@ on:
|
|||
- main
|
||||
|
||||
jobs:
|
||||
changedpkgs:
|
||||
runs-on: ubuntu-22.04
|
||||
outputs:
|
||||
matrix: ${{ steps.matrix.outputs.pkg }}
|
||||
steps:
|
||||
- id: matrix
|
||||
run: |
|
||||
echo "pkg=[\"dotter-bin\",\"filtile-bin\",\"git-bug-git\",\"ly-git\"]" >> $GITHUB_OUTPUT
|
||||
- run: |
|
||||
echo "${{ steps.matrix.outputs.pkg }}"
|
||||
|
||||
build:
|
||||
needs: [ changedpkgs ]
|
||||
runs-on: ubuntu-22.04
|
||||
strategy:
|
||||
max-parallel: 1
|
||||
matrix:
|
||||
arch: [x86_64, x86_64-musl]
|
||||
runs-on: ubuntu-22.04
|
||||
pkg: ${{fromJSON(needs.changedpkgs.outputs.matrix)}}
|
||||
env:
|
||||
XBPS_PASSPHRASE: ${{ secrets.SIGN_PASS }}
|
||||
XBPS_TARGET_ARCH: ${{ matrix.arch }}
|
||||
|
|
Loading…
Reference in a new issue