Build GNOME 48 Packages #18
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: Build GNOME 48 Packages | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'packages/gdm/**' | |
| - 'packages/glib2/**' | |
| - 'packages/gnome-control-center/**' | |
| - 'packages/gnome-initial-setup/**' | |
| - 'packages/gnome-session/**' | |
| - 'packages/gnome-settings-daemon/**' | |
| - 'packages/gnome-shell/**' | |
| - 'packages/gsettings-desktop-schemas/**' | |
| - 'packages/gtk4/**' | |
| - 'packages/libadwaita/**' | |
| - 'packages/libcupsfilters/**' | |
| - 'packages/mutter/**' | |
| - 'packages/pango/**' | |
| - 'packages/poppler/**' | |
| - 'packages/tecla/**' | |
| - 'packages/xdg-desktop-portal/**' | |
| - 'packages/xdg-desktop-portal-gnome/**' | |
| - '.github/workflows/build-gnome48.yml' | |
| - '.github/workflows/reusable-build-package.yml' | |
| - 'scripts/**' | |
| pull_request: | |
| paths: | |
| - 'packages/gdm/**' | |
| - 'packages/glib2/**' | |
| - 'packages/gnome-control-center/**' | |
| - 'packages/gnome-initial-setup/**' | |
| - 'packages/gnome-session/**' | |
| - 'packages/gnome-settings-daemon/**' | |
| - 'packages/gnome-shell/**' | |
| - 'packages/gsettings-desktop-schemas/**' | |
| - 'packages/gtk4/**' | |
| - 'packages/libadwaita/**' | |
| - 'packages/libcupsfilters/**' | |
| - 'packages/mutter/**' | |
| - 'packages/pango/**' | |
| - 'packages/poppler/**' | |
| - 'packages/tecla/**' | |
| - 'packages/xdg-desktop-portal/**' | |
| - 'packages/xdg-desktop-portal-gnome/**' | |
| - '.github/workflows/build-gnome48.yml' | |
| - '.github/workflows/reusable-build-package.yml' | |
| - 'scripts/**' | |
| workflow_dispatch: | |
| inputs: | |
| package: | |
| description: 'Specific package to build (leave empty for all)' | |
| required: false | |
| type: choice | |
| options: | |
| - '' | |
| - gdm | |
| - glib2 | |
| - gnome-control-center | |
| - gnome-initial-setup | |
| - gnome-session | |
| - gnome-settings-daemon | |
| - gnome-shell | |
| - gsettings-desktop-schemas | |
| - gtk4 | |
| - libadwaita | |
| - libcupsfilters | |
| - mutter | |
| - pango | |
| - poppler | |
| - tecla | |
| - xdg-desktop-portal | |
| - xdg-desktop-portal-gnome | |
| schedule: | |
| # Rebuild weekly on Sundays at 2 AM UTC | |
| - cron: '0 2 * * 0' | |
| jobs: | |
| prepare: | |
| name: Prepare build matrix | |
| runs-on: ubuntu-latest | |
| outputs: | |
| packages: ${{ steps.set-matrix.outputs.packages }} | |
| publish: ${{ steps.set-publish.outputs.publish }} | |
| steps: | |
| - name: Determine packages to build | |
| id: set-matrix | |
| run: | | |
| ALL='["gdm","glib2","gnome-control-center","gnome-initial-setup","gnome-session","gnome-settings-daemon","gnome-shell","gsettings-desktop-schemas","gtk4","libadwaita","libcupsfilters","mutter","pango","poppler","tecla","xdg-desktop-portal","xdg-desktop-portal-gnome"]' | |
| if [ -n "${{ inputs.package }}" ]; then | |
| PACKAGES='["${{ inputs.package }}"]' | |
| else | |
| PACKAGES="${ALL}" | |
| fi | |
| echo "packages=${PACKAGES}" >> "${GITHUB_OUTPUT}" | |
| echo "Building packages: ${PACKAGES}" | |
| - name: Determine publish flag | |
| id: set-publish | |
| run: | | |
| if [ "${{ github.event_name }}" = "push" ] || \ | |
| [ "${{ github.event_name }}" = "workflow_dispatch" ] || \ | |
| [ "${{ github.event_name }}" = "schedule" ]; then | |
| echo "publish=true" >> "${GITHUB_OUTPUT}" | |
| else | |
| echo "publish=false" >> "${GITHUB_OUTPUT}" | |
| fi | |
| build: | |
| name: Build ${{ matrix.package }} | |
| needs: prepare | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| package: ${{ fromJson(needs.prepare.outputs.packages) }} | |
| uses: ./.github/workflows/reusable-build-package.yml | |
| with: | |
| package-name: ${{ matrix.package }} | |
| arches: '["x86_64", "x86_64_v2", "aarch64"]' | |
| publish: ${{ needs.prepare.outputs.publish == 'true' }} | |
| secrets: | |
| COSIGN_PRIVATE_KEY: ${{ secrets.COSIGN_PRIVATE_KEY }} | |
| summary: | |
| name: Build Summary | |
| needs: [prepare, build] | |
| if: always() | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check build status | |
| run: | | |
| echo "GNOME 48 Package Build Summary" | |
| echo "==============================" | |
| echo "Event: ${{ github.event_name }}" | |
| echo "Packages: ${{ needs.prepare.outputs.packages }}" | |
| echo "Publish: ${{ needs.prepare.outputs.publish }}" | |
| echo "Build result: ${{ needs.build.result }}" | |
| if [ "${{ needs.build.result }}" = "failure" ]; then | |
| echo "ERROR: One or more builds failed" | |
| exit 1 | |
| fi | |
| echo "✓ All builds completed" |