mirror of
https://github.com/ivabus/pantry
synced 2024-11-30 04:05:06 +03:00
36 lines
942 B
YAML
36 lines
942 B
YAML
name: ci
|
|
on: pull_request
|
|
|
|
jobs:
|
|
get-diff:
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
diff: ${{ steps.diff.outputs.diff }}
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: technote-space/get-diff-action@v6
|
|
id: get-diff
|
|
with:
|
|
PATTERNS: projects/**/package.yml
|
|
- id: diff
|
|
run: |
|
|
for x in ${{ steps.get-diff.outputs.diff }}; do
|
|
y=$(echo $x | sed 's#projects/\(.*\)/package.yml#\1#')
|
|
RESULT="$RESULT $y"
|
|
done
|
|
echo "diff=$RESULT" >> $GITHUB_OUTPUT
|
|
ci:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
platform:
|
|
- darwin+x86-64
|
|
- linux+x86-64
|
|
- darwin+aarch64
|
|
- linux+aarch64
|
|
needs: [get-diff]
|
|
uses: teaxyz/pantry.core/.github/workflows/build.yml@main
|
|
with:
|
|
projects: ${{ needs.get-diff.outputs.diff || 'zlib.net' }}
|
|
platform: ${{ matrix.platform }}
|
|
secrets: inherit
|