Truly independent web browser
CI: Build release snapshots in the nightly workflow
Jelle Raaijmakersacb64bc41a77
diff --git a/.github/actions/build/action.yml b/.github/actions/build/action.ymlindex e0bb94a59c5..0d8024e2fae 100644--- a/.github/actions/build/action.yml+++ b/.github/actions/build/action.yml@@ -130,7 +130,7 @@ runs:shell: bashenv:VCPKG_CACHE_SAS: ${{ github.ref == 'refs/heads/master' && inputs.vcpkg_cache_sas || '' }}- VCPKG_CACHE_MODE: ${{ github.ref == 'refs/heads/master' && 'write' || '' }}+ VCPKG_CACHE_MODE: ${{ github.ref == 'refs/heads/master' && inputs.vcpkg_cache_sas != '' && 'write' || '' }}RELEASE_VERSION: ${{ inputs.version }}run: |cmake --preset ${{ inputs.build_preset }} -B Build \@@ -146,7 +146,7 @@ runs:shell: pwshenv:VCPKG_CACHE_SAS: ${{ github.ref == 'refs/heads/master' && inputs.vcpkg_cache_sas || '' }}- VCPKG_CACHE_MODE: ${{ github.ref == 'refs/heads/master' && 'write' || '' }}+ VCPKG_CACHE_MODE: ${{ github.ref == 'refs/heads/master' && inputs.vcpkg_cache_sas != '' && 'write' || '' }}run: |cmake --preset ${{ inputs.build_preset }} -B Build `-DENABLE_CI_BASELINE_CPU=ON@@ -157,7 +157,7 @@ runs:shell: bashenv:VCPKG_CACHE_SAS: ${{ github.ref == 'refs/heads/master' && inputs.vcpkg_cache_sas || '' }}- VCPKG_CACHE_MODE: ${{ github.ref == 'refs/heads/master' && 'write' || '' }}+ VCPKG_CACHE_MODE: ${{ github.ref == 'refs/heads/master' && inputs.vcpkg_cache_sas != '' && 'write' || '' }}run: |cmake --preset ${{ inputs.build_preset }} -B Build \${{ steps.build-parameters.outputs.cmake_options }} \diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.ymlindex b165a6aa2c3..3126e6ce2df 100644--- a/.github/workflows/build-release.yml+++ b/.github/workflows/build-release.yml@@ -9,12 +9,13 @@ on:description: 'Version to build, such as 2026.11.1 or 2027.1.4.alpha'required: truetype: string+ workflow_call:jobs:Build:if: github.repository == 'LadybirdBrowser/ladybird'name: ${{ matrix.os_name }}, ${{ matrix.arch }}, Distribution, Clang- runs-on: ${{ fromJSON(matrix.runner_labels) }}+ runs-on: ${{ fromJSON(inputs.version && matrix.runner_labels || matrix.snapshot_runner_labels) }}strategy:fail-fast: false@@ -23,6 +24,7 @@ jobs:- os_name: 'macOS'arch: 'arm64'runner_labels: '{"group": "Distribution build runners", "labels": ["self-hosted", "macos-27", "arm64"]}'+ snapshot_runner_labels: '["blacksmith-6vcpu-macos-26"]'permissions:contents: read@@ -56,6 +58,7 @@ jobs:-D CPACK_ARCHIVE_COMPRESSION_LEVEL=19 -D CPACK_COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY=ON- name: Attest+ if: ${{ inputs.version != '' }}uses: actions/attest@v4with:subject-path: '${{ github.workspace }}/Build/packages/*.tar.zst'@@ -93,8 +96,8 @@ jobs:artifact-metadata: writeenv:- BUNDLE: ladybird-${{ inputs.version }}-Linux-${{ matrix.arch }}.flatpak- DEBUG_BUNDLE: ladybird-${{ inputs.version }}-Linux-${{ matrix.arch }}-debug.flatpak+ BUNDLE: ladybird-${{ inputs.version && format('{0}-', inputs.version) }}Linux-${{ matrix.arch }}.flatpak+ DEBUG_BUNDLE: ladybird-${{ inputs.version && format('{0}-', inputs.version) }}Linux-${{ matrix.arch }}-debug.flatpaksteps:- uses: actions/[email protected]@@ -111,6 +114,7 @@ jobs:mv /var/lib/flatpak.rw /var/lib/flatpak- name: Set the version in the manifest+ if: ${{ inputs.version != '' }}env:RELEASE_VERSION: ${{ inputs.version }}run: |@@ -138,6 +142,7 @@ jobs:upload-artifact: false- name: Attest+ if: ${{ inputs.version != '' }}uses: actions/attest@v4with:subject-path: |diff --git a/.github/workflows/flatpak-template.yml b/.github/workflows/flatpak-template.ymldeleted file mode 100644index 4d1658a6d36..00000000000--- a/.github/workflows/flatpak-template.yml+++ /dev/null@@ -1,41 +0,0 @@-name: Flatpak Build--on:- workflow_call:- inputs:- arch:- required: true- type: string- runner_labels:- required: true- type: string--jobs:- flatpak:- runs-on: ${{ fromJSON(inputs.runner_labels) }}-- container:- image: ghcr.io/flathub-infra/flatpak-github-actions:kde-6.10- options: --privileged-- steps:- - uses: actions/[email protected]-- # The image bakes the SDK into a read-only layer, and the action always has flatpak-builder update it from- # Flathub. An update renames the old deployment into /var/lib/flatpak/.removed, and overlayfs can't rename a- # directory that lives in a lower layer (EXDEV) — so whenever Flathub carries a newer SDK than the image, the- # build dies before compiling anything. Copying the installation up into the writable layer first (about 5 GB,- # some 15 seconds) makes that rename an ordinary one, whatever Flathub has published since the image was built.- - name: Make the baked-in Flatpak installation writable- run: |- cp -a /var/lib/flatpak /var/lib/flatpak.rw- rm -rf /var/lib/flatpak- mv /var/lib/flatpak.rw /var/lib/flatpak-- - uses: flatpak/flatpak-github-actions/flatpak-builder@v6- with:- bundle: Ladybird.flatpak- manifest-path: Meta/CMake/flatpak/org.ladybird.Ladybird.json- arch: ${{ inputs.arch }}- # Note: default cache key is 'flatpak-builder-${arch}-${sha256(manifestPath)}'- save-cache: ${{ github.event_name == 'push' }}diff --git a/.github/workflows/nightly-lagom.yml b/.github/workflows/nightly-lagom.ymlindex ad98f09d679..2e3bf32e85e 100644--- a/.github/workflows/nightly-lagom.yml+++ b/.github/workflows/nightly-lagom.yml@@ -35,14 +35,6 @@ jobs:runner_labels: '["blacksmith-8vcpu-ubuntu-2404"]'container: *ci_container- - os_name: 'macOS'- arch: 'arm64'- build_preset: 'Distribution'- toolchain: 'Clang'- clang_plugins: false- runner_labels: '["blacksmith-6vcpu-macos-26"]'- container: 'null'-- os_name: 'Linux'arch: 'arm64'build_preset: 'Distribution'@@ -70,22 +62,14 @@ jobs:clang_plugins: ${{ matrix.clang_plugins }}container: ${{ matrix.container }}- flatpak:+ Release:if: github.repository == 'LadybirdBrowser/ladybird'- name: Flatpak ${{ matrix.arch }}-- strategy:- fail-fast: false- matrix:- arch: ['x86_64']- runner_labels: ['["blacksmith-8vcpu-ubuntu-2404"]']+ name: Build Release- include:- - arch: 'aarch64'- runner_labels: '["blacksmith-8vcpu-ubuntu-2404-arm"]'+ permissions:+ contents: read+ id-token: write+ attestations: write+ artifact-metadata: write- secrets: inherit- uses: ./.github/workflows/flatpak-template.yml- with:- arch: ${{ matrix.arch }}- runner_labels: ${{ matrix.runner_labels }}+ uses: ./.github/workflows/build-release.yml