feat: support Document Picture-in-Picture with native Wayland windows #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Apply Patches | |
| on: | |
| pull_request: | |
| permissions: {} | |
| concurrency: | |
| group: apply-patches-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| setup: | |
| if: github.repository == 'electron/electron' | |
| runs-on: ubuntu-slim | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| outputs: | |
| has-patches: ${{ fromJSON(steps.filter.outputs.results).patches }} | |
| has-siso-patches: ${{ fromJSON(steps.filter.outputs.results).siso-patches }} | |
| build-image-sha: ${{ steps.build-image-sha.outputs.build-image-sha }} | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 | |
| with: | |
| persist-credentials: false | |
| ref: ${{ github.event.pull_request.head.sha }} | |
| # Check changed paths via the API instead of the path filter under the on: block | |
| # so that the output can be used to conditionally run the apply-patches job, which lets | |
| # the job be marked as a required status check (conditional skip counts as a success). | |
| - uses: ./.github/actions/paths-filter | |
| id: filter | |
| with: | |
| filters: | | |
| patches: | |
| - DEPS | |
| - 'patches/**' | |
| siso-patches: | |
| - DEPS | |
| - '.github/siso-patches/**' | |
| - name: Set Build Image SHA | |
| id: build-image-sha | |
| uses: ./.github/actions/build-image-sha | |
| apply-patches: | |
| needs: setup | |
| if: ${{ needs.setup.outputs.has-patches == 'true' }} | |
| runs-on: electron-arc-centralus-linux-amd64-32core | |
| permissions: | |
| contents: read | |
| container: | |
| image: ghcr.io/electron/build:${{ needs.setup.outputs.build-image-sha }} | |
| options: --user root | |
| volumes: | |
| - /mnt/cross-instance-cache:/mnt/cross-instance-cache | |
| - /var/run/sas:/var/run/sas | |
| env: | |
| CHROMIUM_GIT_COOKIE: ${{ secrets.CHROMIUM_GIT_COOKIE }} | |
| GCLIENT_EXTRA_ARGS: '--custom-var=checkout_arm64=True' | |
| steps: | |
| - name: Checkout Electron | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 | |
| with: | |
| path: src/electron | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| ref: ${{ github.event.pull_request.base.ref }} | |
| - name: Merge PR HEAD | |
| working-directory: src/electron | |
| env: | |
| PR_NUMBER: ${{ github.event.pull_request.number }} | |
| run: | | |
| git config user.email "electron@github.com" | |
| git config user.name "Electron Bot" | |
| git fetch origin refs/pull/${PR_NUMBER}/head | |
| git merge --squash FETCH_HEAD | |
| git commit -n -m "Squashed commits" | |
| - name: Checkout & Sync & Save | |
| uses: ./src/electron/.github/actions/checkout | |
| with: | |
| target-platform: linux | |
| - name: Upload Patch Conflict Fix | |
| if: ${{ failure() }} | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: update-patches | |
| path: patches/update-patches.patch | |
| if-no-files-found: ignore | |
| archive: false | |
| # Validate that the siso patches still apply and build for each CI build host. | |
| # Each host is a separate job so a re-run for one host only re-runs that host. | |
| build-siso-macos: | |
| needs: setup | |
| if: ${{ needs.setup.outputs.has-siso-patches == 'true' }} | |
| uses: ./.github/workflows/pipeline-segment-build-siso.yml | |
| permissions: | |
| contents: read | |
| with: | |
| host: darwin-arm64 | |
| build-siso-linux: | |
| needs: setup | |
| if: ${{ needs.setup.outputs.has-siso-patches == 'true' }} | |
| uses: ./.github/workflows/pipeline-segment-build-siso.yml | |
| permissions: | |
| contents: read | |
| with: | |
| host: linux-amd64 | |
| build-siso-windows: | |
| needs: setup | |
| if: ${{ needs.setup.outputs.has-siso-patches == 'true' }} | |
| uses: ./.github/workflows/pipeline-segment-build-siso.yml | |
| permissions: | |
| contents: read | |
| with: | |
| host: windows-amd64 |