|
@@ -18,7 +18,7 @@ env:
|
|
|
|
|
|
|
|
jobs:
|
|
jobs:
|
|
|
discover:
|
|
discover:
|
|
|
- runs-on: ubuntu-latest
|
|
|
|
|
|
|
+ runs-on: macos-latest
|
|
|
outputs:
|
|
outputs:
|
|
|
projects: ${{ steps.collect.outputs.projects }}
|
|
projects: ${{ steps.collect.outputs.projects }}
|
|
|
steps:
|
|
steps:
|
|
@@ -39,14 +39,14 @@ jobs:
|
|
|
fi
|
|
fi
|
|
|
echo "Discovered Desktop projects:"
|
|
echo "Discovered Desktop projects:"
|
|
|
printf ' %s\n' "${desktop_projects[@]}"
|
|
printf ' %s\n' "${desktop_projects[@]}"
|
|
|
- # Build JSON array
|
|
|
|
|
- json=$(printf '%s\n' "${desktop_projects[@]}" | jq -R . | jq -s .)
|
|
|
|
|
- echo "projects=$json" >> "$GITHUB_OUTPUT"
|
|
|
|
|
|
|
+ # Build compact single-line JSON array and write to output (avoid multi-line output command errors)
|
|
|
|
|
+ json=$(printf '%s\n' "${desktop_projects[@]}" | jq -R . | jq -s -c .)
|
|
|
|
|
+ echo "projects=${json}" >> "$GITHUB_OUTPUT"
|
|
|
|
|
|
|
|
build:
|
|
build:
|
|
|
needs: discover
|
|
needs: discover
|
|
|
if: ${{ needs.discover.outputs.projects != '[]' && needs.discover.outputs.projects != '' }}
|
|
if: ${{ needs.discover.outputs.projects != '[]' && needs.discover.outputs.projects != '' }}
|
|
|
- runs-on: ubuntu-latest
|
|
|
|
|
|
|
+ runs-on: macos-latest
|
|
|
strategy:
|
|
strategy:
|
|
|
fail-fast: false
|
|
fail-fast: false
|
|
|
matrix:
|
|
matrix:
|
|
@@ -95,14 +95,15 @@ jobs:
|
|
|
uses: actions/upload-artifact@v4
|
|
uses: actions/upload-artifact@v4
|
|
|
with:
|
|
with:
|
|
|
name: sample-${{ steps.publish.outputs.name }}
|
|
name: sample-${{ steps.publish.outputs.name }}
|
|
|
- path: artifact-${{ steps.zip.outputs.zip || steps.publish.outputs.name }}.zip
|
|
|
|
|
|
|
+ # Use the known artifact file name we just created
|
|
|
|
|
+ path: artifact-${{ steps.publish.outputs.name }}.zip
|
|
|
if-no-files-found: error
|
|
if-no-files-found: error
|
|
|
retention-days: 14
|
|
retention-days: 14
|
|
|
|
|
|
|
|
summary:
|
|
summary:
|
|
|
needs: [discover, build]
|
|
needs: [discover, build]
|
|
|
if: always()
|
|
if: always()
|
|
|
- runs-on: ubuntu-latest
|
|
|
|
|
|
|
+ runs-on: macos-latest
|
|
|
steps:
|
|
steps:
|
|
|
- name: Build Summary
|
|
- name: Build Summary
|
|
|
run: |
|
|
run: |
|