Truly independent web browser
Meta+CI: Loosen version number restrictions
Jelle Raaijmakers4926e6c27933
diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.ymlindex b5ce2ea395f..46a2b3af9c5 100644--- a/.github/workflows/backport.yml+++ b/.github/workflows/backport.yml@@ -1,6 +1,6 @@name: Backport-# Labeling a PR to master with `backport 2026.11` cherry-picks its commits onto release/2026.11 once it is merged, or+# Labeling a PR to master with `backport 2026.46` cherry-picks its commits onto release/2026.46 once it is merged, or# right away if it already is, with `git cherry-pick -x`, and opens a PR against that release branch from a branch named# `backport/<PR>-to-<release branch>`, titled `[Backport <release branch>] <PR title>`. These PRs are opened by a bot,# not by whoever added the label, and run CI like any other PR. A cherry-pick that conflicts still gets a PR, as a draft@@ -71,8 +71,8 @@ jobs:fifor label in "${backport_labels[@]}"; doversion="${label#backport }"- if ! [[ "$version" =~ ^[0-9]{4}\.([1-9]|1[0-2])$ ]]; then- problem "\`${label}\` doesn't name a release, such as \`backport 2026.11\`." \+ if ! [[ "$version" =~ ^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)$ ]]; then+ problem "\`${label}\` doesn't name a release, such as \`backport 2026.46\`." \"Replace it with the label of the release to backport to."continuefidiff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.ymlindex c7295267238..dc99e9b2fd8 100644--- a/.github/workflows/build-release.yml+++ b/.github/workflows/build-release.yml@@ -6,7 +6,7 @@ on:workflow_dispatch:inputs:version:- description: 'Version to build, such as 2026.11.0'+ description: 'Version to build, such as 2026.46.0'required: truetype: stringref:diff --git a/Documentation/AdvancedBuildInstructions.md b/Documentation/AdvancedBuildInstructions.mdindex 2bc10de721e..f4a30ca70aa 100644--- a/Documentation/AdvancedBuildInstructions.md+++ b/Documentation/AdvancedBuildInstructions.md@@ -49,7 +49,7 @@ There are some optional features that can be enabled during compilation that are- `LADYBIRD_ENABLE_CPPTRACE`: uses cpptrace for stack traces when it is available, and `backtrace.h` otherwise. Enabled by default.- `LADYBIRD_GENERATE_SYMBOL_FILES`: builds with debug information and writes the symbols of the installed executables to separate files. Enabled by the `Distribution` preset. Not supported with MSVC-style toolchains.- `LADYBIRD_GENERATE_DSYM`: generates dSYM bundles for executables and libraries on macOS.-- `LADYBIRD_VERSION`: sets the version of a release, as year.month.patch, such as `2026.11.0`. Empty for development builds.+- `LADYBIRD_VERSION`: sets the version of a release, as three integers, such as `2026.46.0`. Empty for development builds.- `ENABLE_INSTALL_HEADERS`: installs the headers of the libraries. Enabled by default.- `ENABLE_INSTALL_FREEDESKTOP_FILES`: installs the desktop entry, D-Bus service, icon and AppStream metainfo files. Enabled by default on Linux and the BSDs.diff --git a/Meta/CMake/cmake_options.cmake b/Meta/CMake/cmake_options.cmakeindex c1a96994125..843dd241e5d 100644--- a/Meta/CMake/cmake_options.cmake+++ b/Meta/CMake/cmake_options.cmake@@ -43,11 +43,11 @@ if (LADYBIRD_GENERATE_SYMBOL_FILES AND MSVC)endif()option(ENABLE_CI_BASELINE_CPU "Use a common CPU baseline for portable binaries and ccache sharing" OFF)-set(LADYBIRD_VERSION "" CACHE STRING "Version of a release: year.month.patch")+set(LADYBIRD_VERSION "" CACHE STRING "Version of a release, such as 2026.46.0")set(LADYBIRD_BROWSER_VERSION "${PROJECT_VERSION}")if (NOT LADYBIRD_VERSION STREQUAL "")- if (NOT LADYBIRD_VERSION MATCHES "^[0-9][0-9][0-9][0-9]\\.([1-9]|1[0-2])\\.(0|[1-9][0-9]*)$")- message(FATAL_ERROR "LADYBIRD_VERSION must be year.month.patch: ${LADYBIRD_VERSION}")+ if (NOT LADYBIRD_VERSION MATCHES "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$")+ message(FATAL_ERROR "LADYBIRD_VERSION must be three integers, such as 2026.46.0: ${LADYBIRD_VERSION}")endif()set(LADYBIRD_BROWSER_VERSION "${LADYBIRD_VERSION}")endif()