Skip to content

Commit

Permalink
working on matrix split
Browse files Browse the repository at this point in the history
  • Loading branch information
SelfhostedPro committed Apr 22, 2024
1 parent 1c196b0 commit 6e77f23
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/armbian_custom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,19 @@ jobs:
- name: Create Matrix
id: matrix
run: |
echo "kernels=$(jq 'split(",")' -Rc <(echo '${{ inputs.kernel_versions || 'vendor' }}'))" >> $GITHUB_OUTPUT
echo "ui_type=$(jq 'split(",")' -Rc <(echo '${{ inputs.ui_type || 'minimal' }}'))" >> $GITHUB_OUTPUT
echo "releases=$(jq 'split(",")' -Rc <(echo '${{ inputs.debian_releases || 'bookworm' }}'))" >> $GITHUB_OUTPUT
echo "kernels=$(jq 'split(",")' -Rc <(echo '${{ inputs.kernel_versions || '"vendor"' }}'))" >> $GITHUB_OUTPUT
echo "ui_type=$(jq 'split(",")' -Rc <(echo '${{ inputs.ui_type || '"minimal"' }}'))" >> $GITHUB_OUTPUT
echo "releases=$(jq 'split(",")' -Rc <(echo '${{ inputs.debian_releases || '"bookworm"' }}'))" >> $GITHUB_OUTPUT
- name: Check Matrix
id: check
run: |
echo "${{ steps.matrix.outputs.releases }}"
echo "${{ steps.matrix.outputs.ui_type }}"
echo "${{ steps.matrix.outputs.kernels }}"
outputs:
releases: ${{ toJson(steps.matrix.outputs.releases) }}
uis: ${{ toJson(steps.matrix.outputs.ui_type) }}
kernels: ${{ toJson(steps.matrix.outputs.kernels) }}
releases: ${{ fromJson(steps.matrix.outputs.releases) }}
uis: ${{ fromJson(steps.matrix.outputs.ui_type) }}
kernels: ${{ fromJson(steps.matrix.outputs.kernels) }}

build-armbian:
continue-on-error: true
Expand All @@ -91,6 +97,7 @@ jobs:

name: "${{ matrix.ui }} | ${{ matrix.release }}-${{ matrix.kernel }}"
runs-on: ubuntu-latest
needs: ["setup"]
steps:
- name: "Checkout Armbian os"
uses: actions/checkout@v4
Expand Down

0 comments on commit 6e77f23

Please sign in to comment.