Skip to content

Commit

Permalink
Merge branch 'master' into refac-database
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzmbrzl committed Feb 15, 2025
2 parents 8101854 + 91ab126 commit d8ce8ac
Show file tree
Hide file tree
Showing 911 changed files with 42,179 additions and 14,990 deletions.
8 changes: 4 additions & 4 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021-2023 The Mumble Developers. All rights reserved.
# Copyright The Mumble Developers. All rights reserved.
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file at the root of the
# Mumble source tree or at <https://www.mumble.info/LICENSE>.
Expand All @@ -12,7 +12,7 @@ environment:
global:
MUMBLE_BUILD_NUMBER_TOKEN:
secure: scRizsdwbTWjY7M9RHPT9EXDBxtWvXTsyVq1xXTWF1A=
MUMBLE_ENVIRONMENT_SOURCE: 'https://github.com/mumble-voip/vcpkg/releases/download/2024-05/'
MUMBLE_ENVIRONMENT_SOURCE: 'https://github.com/mumble-voip/vcpkg/releases/download/2025-02/'
MUMBLE_ENVIRONMENT_STORE: 'C:/MumbleBuild'
MUMBLE_ENVIRONMENT_PATH: '%MUMBLE_ENVIRONMENT_STORE%/%MUMBLE_ENVIRONMENT_VERSION%'
MUMBLE_ENVIRONMENT_TOOLCHAIN: '%MUMBLE_ENVIRONMENT_PATH%/scripts/buildsystems/vcpkg.cmake'
Expand All @@ -22,8 +22,8 @@ environment:
MUMBLE_USE_ELEVATION: 'ON'

matrix:
- MUMBLE_ENVIRONMENT_TRIPLET: 'x64-windows-static-md-release'
MUMBLE_ENVIRONMENT_VERSION: ' mumble_env.x64-windows-static-md-release.2024-05-19.5eaf0d45f'
- MUMBLE_ENVIRONMENT_TRIPLET: 'x64-windows-static-md'
MUMBLE_ENVIRONMENT_VERSION: 'mumble_env.x64-windows-static-md.2025-02-08.4d858462ac'

install:
- ps: .ci/install-environment_windows.ps1
Expand Down
2 changes: 1 addition & 1 deletion .ci/azure-pipelines/assertNoTranslationChanges.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
#
# Copyright 2020-2023 The Mumble Developers. All rights reserved.
# Copyright The Mumble Developers. All rights reserved.
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file at the root of the
# Mumble source tree or at <https://www.mumble.info/LICENSE>.
Expand Down
2 changes: 1 addition & 1 deletion .ci/azure-pipelines/build_linux.bash
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash -ex
#
# Copyright 2020-2023 The Mumble Developers. All rights reserved.
# Copyright The Mumble Developers. All rights reserved.
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file at the root of the
# Mumble source tree or at <https://www.mumble.info/LICENSE>.
Expand Down
2 changes: 1 addition & 1 deletion .ci/azure-pipelines/build_macos.bash
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash -ex
#
# Copyright 2020-2023 The Mumble Developers. All rights reserved.
# Copyright The Mumble Developers. All rights reserved.
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file at the root of the
# Mumble source tree or at <https://www.mumble.info/LICENSE>.
Expand Down
2 changes: 1 addition & 1 deletion .ci/azure-pipelines/checkDocs.bash
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
#
# Copyright 2020-2023 The Mumble Developers. All rights reserved.
# Copyright The Mumble Developers. All rights reserved.
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file at the root of the
# Mumble source tree or at <https://www.mumble.info/LICENSE>.
Expand Down
2 changes: 1 addition & 1 deletion .ci/azure-pipelines/extractWithProgress.bash
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
#
# Copyright 2020-2023 The Mumble Developers. All rights reserved.
# Copyright The Mumble Developers. All rights reserved.
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file at the root of the
# Mumble source tree or at <https://www.mumble.info/LICENSE>.
Expand Down
14 changes: 8 additions & 6 deletions .ci/azure-pipelines/install-environment_linux.bash
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash -ex
#
# Copyright 2020-2023 The Mumble Developers. All rights reserved.
# Copyright The Mumble Developers. All rights reserved.
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file at the root of the
# Mumble source tree or at <https://www.mumble.info/LICENSE>.
Expand All @@ -12,10 +12,12 @@ sudo apt -y install \
g++-multilib \
ninja-build \
pkg-config \
qtbase5-dev \
qttools5-dev \
qttools5-dev-tools \
libqt5svg5-dev \
qt6-base-dev \
qt6-l10n-tools \
qt6-tools-dev \
qt6-tools-dev-tools \
libqt6svg6-dev \
libgl-dev \
libboost-dev \
libssl-dev \
libprotobuf-dev \
Expand Down Expand Up @@ -58,4 +60,4 @@ sudo systemctl start postgresql.service

echo "CREATE DATABASE mumble_test_db; "\
"CREATE USER mumble_test_user ENCRYPTED PASSWORD 'MumbleTestPassword'; "\
"GRANT ALL PRIVILEGES ON DATABASE mumble_test_db TO mumble_test_user;" | sudo -u postgres psql
"ALTER DATABASE mumble_test_db OWNER TO mumble_test_user;" | sudo -u postgres psql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
#
# Copyright 2020-2023 The Mumble Developers. All rights reserved.
# Copyright The Mumble Developers. All rights reserved.
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file at the root of the
# Mumble source tree or at <https://www.mumble.info/LICENSE>.
Expand Down
10 changes: 6 additions & 4 deletions .ci/azure-pipelines/install-environment_macos.bash
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash -ex
#
# Copyright 2020-2023 The Mumble Developers. All rights reserved.
# Copyright The Mumble Developers. All rights reserved.
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file at the root of the
# Mumble source tree or at <https://www.mumble.info/LICENSE>.
Expand Down Expand Up @@ -58,10 +58,12 @@ echo "Configuring PostgreSQL..."

# Using brew service start postgresql for some reason does not work so we have
# to resort to starting PostgreSQL manually.
postgres_data_dir="$( brew info postgresql | grep -E '^ *initdb' | awk '{print $NF}' )"
pg_ctl start -D "$postgres_data_dir"
brew info postgresql
brew services start postgresql
#postgres_data_dir="$( brew info postgresql | grep -E '^ *initdb' | awk '{print $NF}' )"
#pg_ctl start -D "$postgres_data_dir"

echo "CREATE DATABASE mumble_test_db; "\
"CREATE USER mumble_test_user ENCRYPTED PASSWORD 'MumbleTestPassword'; "\
"GRANT ALL PRIVILEGES ON DATABASE mumble_test_db TO mumble_test_user;" | psql -d postgres
"ALTER DATABASE mumble_test_db OWNER TO mumble_test_user;" | psql -d postgres

14 changes: 7 additions & 7 deletions .ci/azure-pipelines/main-pr.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Copyright 2020-2023 The Mumble Developers. All rights reserved.
# Copyright The Mumble Developers. All rights reserved.
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file at the root of the
# Mumble source tree or at <https://www.mumble.info/LICENSE>.

variables:
MUMBLE_ENVIRONMENT_STORE: '$(Agent.ToolsDirectory)/MumbleBuild'
MUMBLE_ENVIRONMENT_SOURCE: 'https://github.com/mumble-voip/vcpkg/releases/download/2024-05/'
MUMBLE_ENVIRONMENT_SOURCE: 'https://github.com/mumble-voip/vcpkg/releases/download/2025-02/'
MUMBLE_ENVIRONMENT_PATH: '$(MUMBLE_ENVIRONMENT_STORE)/$(MUMBLE_ENVIRONMENT_VERSION)'
MUMBLE_ENVIRONMENT_TOOLCHAIN: '$(MUMBLE_ENVIRONMENT_PATH)/scripts/buildsystems/vcpkg.cmake'
MUMBLE_SOURCE_COMMIT: '$(Build.SourceVersion)'
Expand All @@ -24,8 +24,8 @@ jobs:
pool:
vmImage: 'windows-2022'
variables:
MUMBLE_ENVIRONMENT_VERSION: 'mumble_env.x64-windows-static-md-release.2024-05-19.5eaf0d45f'
MUMBLE_ENVIRONMENT_TRIPLET: 'x64-windows-static-md-release'
MUMBLE_ENVIRONMENT_VERSION: 'mumble_env.x64-windows-static-md.2025-02-08.4d858462ac'
MUMBLE_ENVIRONMENT_TRIPLET: 'x64-windows-static-md'
steps:
- template: steps_windows.yml
parameters:
Expand All @@ -43,10 +43,10 @@ jobs:
workspace:
clean: all
pool:
vmImage: 'macOS-12'
vmImage: 'macOS-14'
variables:
MUMBLE_ENVIRONMENT_VERSION: 'mumble_env.x64-osx-release.2024-05-19.5eaf0d45f'
MUMBLE_ENVIRONMENT_TRIPLET: 'x64-osx-release'
MUMBLE_ENVIRONMENT_VERSION: 'mumble_env.x64-osx.2025-02-08.4d858462ac'
MUMBLE_ENVIRONMENT_TRIPLET: 'x64-osx'
steps:
- template: steps_macos.yml
parameters:
Expand Down
14 changes: 7 additions & 7 deletions .ci/azure-pipelines/main.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Copyright 2020-2023 The Mumble Developers. All rights reserved.
# Copyright The Mumble Developers. All rights reserved.
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file at the root of the
# Mumble source tree or at <https://www.mumble.info/LICENSE>.

variables:
MUMBLE_ENVIRONMENT_STORE: '$(Agent.ToolsDirectory)/MumbleBuild'
MUMBLE_ENVIRONMENT_SOURCE: 'https://github.com/mumble-voip/vcpkg/releases/download/2024-05/'
MUMBLE_ENVIRONMENT_SOURCE: 'https://github.com/mumble-voip/vcpkg/releases/download/2025-02/'
MUMBLE_ENVIRONMENT_PATH: '$(MUMBLE_ENVIRONMENT_STORE)/$(MUMBLE_ENVIRONMENT_VERSION)'
MUMBLE_ENVIRONMENT_TOOLCHAIN: '$(MUMBLE_ENVIRONMENT_PATH)/scripts/buildsystems/vcpkg.cmake'
MUMBLE_SOURCE_COMMIT: '$(Build.SourceVersion)'
Expand All @@ -22,8 +22,8 @@ jobs:
pool:
vmImage: 'windows-2022'
variables:
MUMBLE_ENVIRONMENT_VERSION: 'mumble_env.x64-windows-static-md-release.2024-05-19.5eaf0d45f'
MUMBLE_ENVIRONMENT_TRIPLET: 'x64-windows-static-md-release'
MUMBLE_ENVIRONMENT_VERSION: 'mumble_env.x64-windows-static-md.2025-02-08.4d858462ac'
MUMBLE_ENVIRONMENT_TRIPLET: 'x64-windows-static-md'
steps:
- template: steps_windows.yml
parameters:
Expand All @@ -41,10 +41,10 @@ jobs:
workspace:
clean: all
pool:
vmImage: 'macOS-12'
vmImage: 'macOS-14'
variables:
MUMBLE_ENVIRONMENT_VERSION: 'mumble_env.x64-osx-release.2024-05-19.5eaf0d45f'
MUMBLE_ENVIRONMENT_TRIPLET: 'x64-osx-release'
MUMBLE_ENVIRONMENT_VERSION: 'mumble_env.x64-osx.2025-02-08.4d858462ac'
MUMBLE_ENVIRONMENT_TRIPLET: 'x64-osx'
steps:
- template: steps_macos.yml
parameters:
Expand Down
2 changes: 1 addition & 1 deletion .ci/azure-pipelines/package_AppImage.bash
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash -ex
#
# Copyright 2020-2023 The Mumble Developers. All rights reserved.
# Copyright The Mumble Developers. All rights reserved.
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file at the root of the
# Mumble source tree or at <https://www.mumble.info/LICENSE>.
Expand Down
2 changes: 1 addition & 1 deletion .ci/azure-pipelines/release_macos.bash
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash -ex
#
# Copyright 2021-2023 The Mumble Developers. All rights reserved.
# Copyright The Mumble Developers. All rights reserved.
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file at the root of the
# Mumble source tree or at <https://www.mumble.info/LICENSE>.
Expand Down
2 changes: 1 addition & 1 deletion .ci/azure-pipelines/release_windows.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
:: Copyright 2021-2023 The Mumble Developers. All rights reserved.
:: Copyright The Mumble Developers. All rights reserved.
:: Use of this source code is governed by a BSD-style license
:: that can be found in the LICENSE file at the root of the
:: Mumble source tree or at <https://www.mumble.info/LICENSE>.
Expand Down
2 changes: 1 addition & 1 deletion .ci/azure-pipelines/steps_linux.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2020-2023 The Mumble Developers. All rights reserved.
# Copyright The Mumble Developers. All rights reserved.
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file at the root of the
# Mumble source tree or at <https://www.mumble.info/LICENSE>.
Expand Down
2 changes: 1 addition & 1 deletion .ci/azure-pipelines/steps_macos.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2020-2023 The Mumble Developers. All rights reserved.
# Copyright The Mumble Developers. All rights reserved.
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file at the root of the
# Mumble source tree or at <https://www.mumble.info/LICENSE>.
Expand Down
2 changes: 1 addition & 1 deletion .ci/azure-pipelines/steps_windows.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2020-2023 The Mumble Developers. All rights reserved.
# Copyright The Mumble Developers. All rights reserved.
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file at the root of the
# Mumble source tree or at <https://www.mumble.info/LICENSE>.
Expand Down
2 changes: 1 addition & 1 deletion .ci/azure-pipelines/task-environment-cache.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2020-2023 The Mumble Developers. All rights reserved.
# Copyright The Mumble Developers. All rights reserved.
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file at the root of the
# Mumble source tree or at <https://www.mumble.info/LICENSE>.
Expand Down
2 changes: 1 addition & 1 deletion .ci/azure-pipelines/task-publish-artifacts.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2020-2023 The Mumble Developers. All rights reserved.
# Copyright The Mumble Developers. All rights reserved.
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file at the root of the
# Mumble source tree or at <https://www.mumble.info/LICENSE>.
Expand Down
2 changes: 1 addition & 1 deletion .ci/build_windows.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
:: Copyright 2021-2023 The Mumble Developers. All rights reserved.
:: Copyright The Mumble Developers. All rights reserved.
:: Use of this source code is governed by a BSD-style license
:: that can be found in the LICENSE file at the root of the
:: Mumble source tree or at <https://www.mumble.info/LICENSE>.
Expand Down
7 changes: 5 additions & 2 deletions .ci/install-environment_windows.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021-2023 The Mumble Developers. All rights reserved.
# Copyright The Mumble Developers. All rights reserved.
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file at the root of the
# Mumble source tree or at <https://www.mumble.info/LICENSE>.
Expand Down Expand Up @@ -141,7 +141,7 @@ pg_ctl start -D "$env:PGDATA"

Write-Output ("CREATE DATABASE mumble_test_db; " +
"CREATE USER mumble_test_user ENCRYPTED PASSWORD 'MumbleTestPassword'; " +
"GRANT ALL PRIVILEGES ON DATABASE mumble_test_db TO mumble_test_user;") | psql --username "postgres"
"ALTER DATABASE mumble_test_db OWNER TO mumble_test_user;") | psql --username "postgres"


Write-Host "Configuring MySQL..."
Expand All @@ -154,6 +154,9 @@ Start-Process mysqld
# Give the MySQL daemon some time to start up
Start-Sleep -Seconds 5

Write-Host ("CREATE DATABASE mumble_test_db; " +
"CREATE USER 'mumble_test_user'@'localhost' IDENTIFIED BY 'MumbleTestPassword'; " +
"GRANT ALL PRIVILEGES ON mumble_test_db.* TO 'mumble_test_user'@'localhost';")
Write-Output ("CREATE DATABASE mumble_test_db; " +
"CREATE USER 'mumble_test_user'@'localhost' IDENTIFIED BY 'MumbleTestPassword'; " +
"GRANT ALL PRIVILEGES ON mumble_test_db.* TO 'mumble_test_user'@'localhost';") | mysql --user=root
4 changes: 2 additions & 2 deletions .cirrus.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2019-2024 The Mumble Developers. All rights reserved.
# Copyright The Mumble Developers. All rights reserved.
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file at the root of the
# Mumble source tree or at <https://www.mumble.info/LICENSE>.
Expand All @@ -8,7 +8,7 @@ freebsd_instance:
freebsd_task:
pkg_script:
- pkg update && pkg upgrade -y
- pkg install -y git ninja pkgconf cmake qt5-buildtools qt5-qmake qt5-linguisttools qt5-concurrent qt5-network qt5-xml qt5-sql qt5-svg qt5-testlib boost-libs libsndfile protobuf ice37 avahi-libdns poco opus
- pkg install -y git ninja pkgconf cmake qt6-base qt6-svg qt6-tools boost-libs libsndfile protobuf ice37 avahi-libdns poco opus
fetch_submodules_script: git submodule --quiet update --init --recursive
build_script:
- mkdir build && cd build
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
set -e
set -x

. /etc/os-release

sudo apt update

sudo apt -y install \
build-essential \
g++-multilib \
ninja-build \
pkg-config \
qtbase5-dev \
qttools5-dev \
qttools5-dev-tools \
libqt5svg5-dev \
qt6-base-dev \
qt6-tools-dev \
libboost-dev \
libssl-dev \
libprotobuf-dev \
Expand All @@ -35,6 +35,20 @@ sudo apt -y install \
libpoco-dev \
libsqlite3-dev

# The package was initially called libqt6svg6-dev.
# Choose correct name based on the Ubuntu version.
if [[ $VERSION_ID = "22.04" ]]
then
# libgl-dev is required in order for GUI-related components to be found by CMake.
# qt6-l10n-tools and qt6-tools-dev-tools are required in order for LinguistTools to be found by CMake.
sudo apt -y install libgl-dev \
libqt6svg6-dev \
qt6-l10n-tools \
qt6-tools-dev-tools
else
sudo apt -y install qt6-svg-dev
fi

# MySQL and PostgreSQL are pre-installed on GitHub-hosted runners. More info about the default setup can be found at
# - https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu1804-Readme.md#databases
# - https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-Readme.md#databases
Expand All @@ -59,4 +73,4 @@ sudo systemctl start postgresql.service

echo "CREATE DATABASE mumble_test_db; "\
"CREATE USER mumble_test_user ENCRYPTED PASSWORD 'MumbleTestPassword'; "\
"GRANT ALL PRIVILEGES ON DATABASE mumble_test_db TO mumble_test_user;" | sudo -u postgres psql
"ALTER DATABASE mumble_test_db OWNER TO mumble_test_user;" | sudo -u postgres psql
21 changes: 20 additions & 1 deletion .github/workflows/backport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,28 @@ on:
types: ["labeled", "closed"]

jobs:
label_checker:
name: Check labels
runs-on: ubuntu-latest
outputs:
state: ${{ steps.check.outputs.label_check }}
steps:
- id: check
uses: agilepathway/[email protected]
with:
prefix_mode: true
any_of: auto-backport-to-
repo_token: ${{ secrets.GITHUB_TOKEN }}
allow_failure: true
- name: Print status
shell: bash
run: 'echo "Label detection status: ${{ steps.check.outputs.label_check }}"'


backport:
needs: [ label_checker ]
name: Backport PR
if: github.event.pull_request.merged == true && !(contains(github.event.pull_request.labels.*.name, 'backport'))
if: github.event.pull_request.merged == true && needs.label_checker.outputs.state == 'success'
runs-on: ubuntu-latest
steps:
- name: Backport Action
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release_dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ jobs:
with:
token: ${{ secrets.DOCKER_REPO_ACCCESS_TOKEN }}
event-type: new_release
client_payload: '{ "tag": "${{ github.event.release.tag_name }}", "is_latest": "${{ github.event.release.commitish == "master" }}" }'
client_payload: >
{ "tag": "${{ github.event.release.tag_name }}", "is_latest": "${{ github.event.release.commitish == 'master' }}" }
Loading

0 comments on commit d8ce8ac

Please sign in to comment.