Skip to content

Merge pull request #13 from bschnei/main #167

Merge pull request #13 from bschnei/main

Merge pull request #13 from bschnei/main #167

Workflow file for this run

name: 🎡 CI
on:
push:
paths:
- '.github/workflows/CI.yml'
- '.github/workflows/_test-choco-package.yml'
- 'packages/**'
workflow_dispatch:
jobs:
choco:
uses: kamack38/packages/.github/workflows/_test-choco-package.yml@main
with:
packages: >-
[
'7tt',
'action',
'blitz.gg',
'borderlessminecraft',
'croc',
'eza',
'jarfix',
'onefetch',
'portmaster',
'shfmt',
'tcno-acc-switcher',
'tree-sitter',
'windhawk',
]
generate-aur-matrix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Generate matrix
id: gen-matrix
run: |
echo "packages=$(find ./packages/ -type f -name '*PKGBUILD' | sed -r 's|/[^/]+$||' | sort | uniq | cut -f3 -d'/' | jq -R . | jq -cs .)" >> $GITHUB_OUTPUT
echo "Generated matrix: $(find ./packages/ -type f -name '*PKGBUILD' | sed -r 's|/[^/]+$||' | sort | uniq | cut -f3 -d'/' | jq -R . | jq -cs .)"
outputs:
packages: ${{ steps.gen-matrix.outputs.packages }}
aur:
runs-on: ubuntu-latest
needs: generate-aur-matrix
strategy:
fail-fast: false
matrix:
pkgname: ${{ fromJson(needs.generate-aur-matrix.outputs.packages) }}
steps:
- name: 📚 Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 🛠️ Check PKGBUILD
id: build-test
uses: ouuan/pkgbuild-action@master
with:
path: ./packages/${{ matrix.pkgname }}