pantry/.github/workflows/ci.yml

39 lines
995 B
YAML
Raw Normal View History

name: ci
2023-03-16 15:33:53 +03:00
run-name: 'ci: ${{ github.event.pull_request.title }}'
on: pull_request
jobs:
2023-04-09 15:26:48 +03:00
get-projects:
runs-on: ubuntu-latest
outputs:
diff: ${{ steps.diff.outputs.diff }}
steps:
- uses: actions/checkout@v3
- uses: technote-space/get-diff-action@v6
2023-02-11 14:06:35 +03:00
id: get-diff
with:
PATTERNS: projects/**/package.yml
2023-02-11 14:06:35 +03:00
- id: diff
run: |
2022-12-31 17:50:18 +03:00
for x in ${{ steps.get-diff.outputs.diff }}; do
y=$(echo $x | sed 's#projects/\(.*\)/package.yml#\1#')
RESULT="$RESULT $y"
done
2023-02-11 14:06:35 +03:00
echo "diff=$RESULT" >> $GITHUB_OUTPUT
2023-04-09 15:26:48 +03:00
build:
2023-02-04 03:52:04 +03:00
strategy:
fail-fast: false
matrix:
platform:
- darwin+x86-64
- linux+x86-64
- darwin+aarch64
- linux+aarch64
2023-04-09 15:26:48 +03:00
needs: [get-projects]
uses: ./.github/workflows/build.yml
with:
2023-04-09 15:26:48 +03:00
projects: ${{ needs.get-projects.outputs.diff || 'zlib.net^1.2' }}
2023-02-04 03:52:04 +03:00
platform: ${{ matrix.platform }}
secrets: inherit