Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Dec 10, 2023
1 parent d8ee75d commit a9715db
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
diff:
runs-on: ubuntu-latest
outputs:
diff: ${{ steps.diff.outputs.diff }}
pkgs: ${{ steps.diff.outputs.pkgs }}
steps:
- uses: actions/checkout@v3
- uses: technote-space/get-diff-action@v6
Expand All @@ -31,13 +31,19 @@ jobs:
y=$(echo $x | sed 's#projects/\(.*\)/[^/]*#\1#')
RESULT="$RESULT $y"
done
echo "diff=$RESULT" >> $GITHUB_OUTPUT
if [ -n "$RESULT" ]; then
RESULT="$(echo $RESULT | jq -R -s -c 'split(" ")')"
else
RESULT='["zlib.net"]'
fi
echo "pkgs=$RESULT" >> $GITHUB_OUTPUT
build:
needs: diff
name: ci ${{ matrix.platform.name }}
name: ci ${{ matrix.platform.name }} ${{matrix.pkg}}
strategy:
matrix:
pkg: ${{ fromJSON(needs.diff.outputs.pkgs) }}
platform:
- os: ["self-hosted", "macOS", "X64"]
name: x64
Expand Down Expand Up @@ -66,7 +72,7 @@ jobs:
- uses: pkgxdev/brewkit/build@v1
id: build
with:
pkg: ${{ needs.diff.outputs.diff || 'zlib.net' }}
pkg: ${{ matrix.pkg }}

- uses: pkgxdev/brewkit/audit@v1
if: steps.build.outputs.pkgspec
Expand Down

0 comments on commit a9715db

Please sign in to comment.