2022-08-01 22:43:40 +03:00
|
|
|
name: ci
|
2023-02-11 17:59:00 +03:00
|
|
|
|
2022-08-01 22:43:40 +03:00
|
|
|
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
|
2023-02-11 13:52:24 +03:00
|
|
|
id: get-diff
|
2022-08-01 22:43:40 +03:00
|
|
|
with:
|
|
|
|
PATTERNS: projects/**/package.yml
|
2023-02-11 13:52:24 +03:00
|
|
|
- id: diff
|
|
|
|
run: |
|
2023-02-14 23:15:22 +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 13:52:24 +03:00
|
|
|
echo "diff=$RESULT" >> $GITHUB_OUTPUT
|
2022-08-01 22:43:40 +03:00
|
|
|
build:
|
2023-02-03 01:13:38 +03:00
|
|
|
strategy:
|
2023-02-03 04:07:32 +03:00
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
platform:
|
|
|
|
- darwin+x86-64
|
|
|
|
- linux+x86-64
|
|
|
|
- darwin+aarch64
|
|
|
|
- linux+aarch64
|
2022-08-01 22:43:40 +03:00
|
|
|
needs: [get-diff]
|
2022-08-09 02:50:24 +03:00
|
|
|
uses: ./.github/workflows/build.yml
|
|
|
|
with:
|
2022-10-27 20:23:19 +03:00
|
|
|
projects: ${{ needs.get-diff.outputs.diff || 'zlib.net' }}
|
2023-02-03 01:13:38 +03:00
|
|
|
platform: ${{ matrix.platform }}
|
2022-08-09 02:50:24 +03:00
|
|
|
secrets: inherit
|