Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/autobuild/android.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
set -eu

# Some of the following version pinnings are semi-automatically checked for
# updates. Update .github/workflows/bump-dependencies.yaml when renaming those:
# updates. Update .github/workflows/bump-dependencies.yml when renaming those:
COMMANDLINETOOLS_VERSION=6858069
ANDROID_NDK_VERSION=r21d
ANDROID_PLATFORM=android-30
Expand Down
8 changes: 8 additions & 0 deletions .github/autobuild/ios-dependencies.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
# The following version pinnings are semi-automatically checked for updates.
# Verify .github/workflows/bump-dependencies.yml when changing those manually:

Comment thread
ann0see marked this conversation as resolved.
Resolved
# Values are consumed by ios.sh and the dependency cache key.
# shellcheck disable=SC2034
AQTINSTALL_VERSION=3.3.0
QT_VERSION=5.15.2
18 changes: 10 additions & 8 deletions .github/autobuild/ios.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@

set -eu

QT_DIR=/opt/qt
# The following version pinnings are semi-automatically checked for
# updates. Verify .github/workflows/bump-dependencies.yaml when changing those manually:
Comment thread
ann0see marked this conversation as resolved.
Resolved
AQTINSTALL_VERSION=3.3.0
PROJECT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
readonly PROJECT_DIR
# shellcheck disable=SC1091
source "${PROJECT_DIR}/.github/autobuild/ios-dependencies.sh"

QT_DIR=${HOME}/qt

if [[ ! ${QT_VERSION:-} =~ [0-9]+\.[0-9]+\..* ]]; then
echo "Environment variable QT_VERSION must be set to a valid Qt version"
Expand All @@ -63,13 +65,13 @@ if [[ ! ${JAMULUS_BUILD_VERSION:-} =~ [0-9]+\.[0-9]+\.[0-9]+ ]]; then
fi

setup() {
if [[ -d "${QT_DIR}" ]]; then
# We may need to create the Qt installation directory and chown it to the runner user to fix permissions
sudo mkdir -p "${QT_DIR}"
sudo chown -R "$(whoami)" "${QT_DIR}"
if [[ -x "${QT_DIR}/${QT_VERSION}/ios/bin/qmake" ]]; then
echo "Using Qt installation from previous run (actions/cache)"
else
echo "Installing Qt"
# We may need to create the Qt installation directory and chown it to the runner user to fix permissions
sudo mkdir -p "${QT_DIR}"
sudo chown "$(whoami)" "${QT_DIR}"
# Create and enter virtual environment
python3 -m venv venv
# Must hide directory as it just gets created during execution of the previous command and cannot be found by shellcheck
Expand Down
9 changes: 9 additions & 0 deletions .github/autobuild/mac-dependencies_qt5.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
# The following version pinnings are semi-automatically checked for updates.
# Verify .github/workflows/bump-dependencies.yml when changing those manually:

# Values are consumed by .github/autobuild/mac.sh, mac/deploy_mac.sh and the dependency cache key.
# shellcheck disable=SC2034
AQTINSTALL_VERSION=3.3.0
QT_VERSION=5.15.2
CREATEDMG_VERSION=1.3.0
9 changes: 9 additions & 0 deletions .github/autobuild/mac-dependencies_qt6.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
# The following version pinnings are semi-automatically checked for updates.
# Verify .github/workflows/bump-dependencies.yml when changing those manually:

# Values are consumed by .github/autobuild/mac.sh, mac/deploy_mac.sh and the dependency cache key.
# shellcheck disable=SC2034
AQTINSTALL_VERSION=3.3.0
QT_VERSION=6.10.2
CREATEDMG_VERSION=1.3.0
68 changes: 41 additions & 27 deletions .github/autobuild/mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,22 @@

set -eu

QT=${QT:-6}
case "${QT}" in
5) QT_PLATFORM=clang_64 ;;
6) QT_PLATFORM=macos ;;
*)
echo "Unsupported macOS Qt selector: ${QT} (expected 5 or 6)" >&2
exit 1
;;
esac
readonly QT_PLATFORM
PROJECT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
readonly PROJECT_DIR
# shellcheck disable=SC1090
source "${PROJECT_DIR}/.github/autobuild/mac-dependencies_qt${QT}.sh"
Comment thread
pljones marked this conversation as resolved.
Resolved

QT_DIR=~/qt
# The following version pinnings are semi-automatically checked for
# updates. Verify .github/workflows/bump-dependencies.yaml when changing those manually:
AQTINSTALL_VERSION=3.3.0

TARGET_ARCHS="${TARGET_ARCHS:-}"

Expand All @@ -65,31 +77,33 @@ if [[ ! ${JAMULUS_BUILD_VERSION:-} =~ [0-9]+\.[0-9]+\.[0-9]+ ]]; then
fi

setup() {
if [[ -d "${QT_DIR}" ]]; then
if [[ -x "${QT_DIR}/${QT_VERSION}/${QT_PLATFORM}/bin/qmake" &&
-x "${QT_DIR}/${QT_VERSION}/${QT_PLATFORM}/bin/macdeployqt" ]]; then
echo "Using Qt installation from previous run (actions/cache)"
else
echo "Installing Qt..."
# We may need to create the Qt installation directory and chown it to the runner user to fix permissions
sudo mkdir -p "${QT_DIR}"
sudo chown "$(whoami)" "${QT_DIR}"
# Create and enter virtual environment
python3 -m venv venv
# Must hide directory as it just gets created during execution of the previous command and cannot be found by shellcheck
# shellcheck source=/dev/null
source venv/bin/activate
pip install "aqtinstall==${AQTINSTALL_VERSION}"
local qtmultimedia=()
if [[ ! "${QT_VERSION}" =~ 5\.[0-9]+\.[0-9]+ ]]; then
# From Qt6 onwards, qtmultimedia is a module and cannot be installed
# as an archive anymore.
qtmultimedia=("--modules")
fi
qtmultimedia+=("qtmultimedia")
python3 -m aqt install-qt --outputdir "${QT_DIR}" mac desktop "${QT_VERSION}" --archives qtbase qttools qttranslations "${qtmultimedia[@]}"
# deactivate and remove venv as aqt is no longer needed from here on
deactivate
rm -rf venv
return
fi

echo "Installing Qt..."
# We may need to create the Qt installation directory and chown it to the runner user to fix permissions
sudo mkdir -p "${QT_DIR}"
sudo chown "$(whoami)" "${QT_DIR}"
# Create and enter virtual environment
python3 -m venv venv
# Must hide directory as it just gets created during execution of the previous command and cannot be found by shellcheck
# shellcheck source=/dev/null
source venv/bin/activate
pip install "aqtinstall==${AQTINSTALL_VERSION}"
local qtmultimedia=()
if [[ ! "${QT_VERSION}" =~ 5\.[0-9]+\.[0-9]+ ]]; then
# From Qt6 onwards, qtmultimedia is a module and cannot be installed
# as an archive anymore.
qtmultimedia=("--modules")
fi
qtmultimedia+=("qtmultimedia")
python3 -m aqt install-qt --outputdir "${QT_DIR}" mac desktop "${QT_VERSION}" --archives qtbase qttools qttranslations "${qtmultimedia[@]}"
# deactivate and remove venv as aqt is no longer needed from here on
deactivate
rm -rf venv
}

prepare_signing() {
Expand Down Expand Up @@ -194,7 +208,7 @@ build_app_as_dmg_installer() {
if prepare_signing; then
BUILD_ARGS=("-s" "${MACOS_CERTIFICATE_DEV_ID_APPLICATION_ID}" "-a" "${MAC_STORE_APP_CERT_ID}" "-i" "${MACOS_CERTIFICATE_INST_DISTRIBUTION_ID}" "-k" "${KEYCHAIN_PASSWORD}")
fi
TARGET_ARCHS="${TARGET_ARCHS}" ./mac/deploy_mac.sh "${BUILD_ARGS[@]}"
QT=${QT} TARGET_ARCHS="${TARGET_ARCHS}" ./mac/deploy_mac.sh "${BUILD_ARGS[@]}"
}

pass_artifact_to_job() {
Expand Down
19 changes: 19 additions & 0 deletions .github/autobuild/windows-dependencies.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# The following version pinnings are semi-automatically checked for updates.
# Verify .github/workflows/bump-dependencies.yml when changing those manually:

# Values are consumed by .github/autobuild/windows.ps1, windows/deploy_windows.ps1 and the dependency cache key.
$Qt32Version = "5.15.2"
$Qt64Version = "6.10.2"
$QtCompile32 = "msvc2019"
$QtCompile64 = "msvc2022"
$AqtinstallVersion = "3.3.0"
$JackVersion = "1.9.22"
$JomVersion = "1.1.2"

# Important:
# - Do not update ASIO SDK without checking for license-related changes.
# - Do not copy (parts of) the ASIO SDK into the Jamulus source tree without
# further consideration as it would make the license situation more complicated.
Comment thread
ann0see marked this conversation as resolved.
Resolved
$AsioSDKVersion = "ASIO-SDK_2.3.4_2025-10-15"

$NsisVersion = "3.13"
23 changes: 10 additions & 13 deletions .github/autobuild/windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,11 @@ $ProgressPreference = 'SilentlyContinue'
$QtDir = 'C:\Qt'
$ChocoCacheDir = 'C:\ChocoCache'
$DownloadCacheDir = 'C:\AutobuildCache'
# The following version pinnings are semi-automatically checked for
# updates. Verify .github/workflows/bump-dependencies.yaml when changing those manually:
$Qt32Version = "5.15.2"
$Qt64Version = "6.10.2"
$AqtinstallVersion = "3.3.0"
$JackVersion = "1.9.22"
$Msvc32Version = "win32_msvc2019"
$Msvc64Version = "win64_msvc2022_64"
$JomVersion = "1.1.2"
$DependencySuffix = ''
. "$PSScriptRoot\windows-dependencies.ps1"

$Msvc32Version = "${QtCompile32}"
$Msvc64Version = "${QtCompile64}_64"

# Compose JACK download urls
$JackBaseUrl = "https://github.com/jackaudio/jack2-releases/releases/download/v${JackVersion}/jack2-win"
Expand Down Expand Up @@ -150,7 +146,8 @@ Function Install-Qt

Function Ensure-Qt
{
if ( Test-Path -Path $QtDir )
if ( (Test-Path -Path "$QtDir\$Qt32Version\${Msvc32Version}\bin\qmake.exe" -PathType Leaf) -and
(Test-Path -Path "$QtDir\$Qt64Version\${Msvc64Version}\bin\qmake.exe" -PathType Leaf) )
{
echo "Using Qt installation from previous run (actions/cache)"
return
Expand All @@ -165,10 +162,10 @@ Function Ensure-Qt
}

echo "Get Qt 64 bit..."
Install-Qt "${Qt64Version}" "${Msvc64Version}"
Install-Qt "${Qt64Version}" "win64_${Msvc64Version}"

echo "Get Qt 32 bit..."
Install-Qt "${Qt32Version}" "${Msvc32Version}"
Install-Qt "${Qt32Version}" "win32_${Msvc32Version}"
}

Function Ensure-jom
Expand Down Expand Up @@ -238,7 +235,7 @@ Function Build-App-With-Installer
{
$ExtraArgs += ("-BuildOption", $BuildOption)
}
powershell ".\windows\deploy_windows.ps1" "C:\Qt\${Qt32Version}" "C:\Qt\${Qt64Version}" @ExtraArgs
powershell ".\windows\deploy_windows.ps1" @ExtraArgs
if ( !$? )
{
throw "deploy_windows.ps1 failed with exit code $LastExitCode"
Expand Down
34 changes: 28 additions & 6 deletions .github/workflows/autobuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,47 +226,52 @@ jobs:
- config_name: MacOS (artifacts)
target_os: macos
building_on_os: macos-15
base_command: QT_VERSION=6.10.2 SIGN_IF_POSSIBLE=1 TARGET_ARCHS="x86_64 arm64" ./.github/autobuild/mac.sh
base_command: QT=6 SIGN_IF_POSSIBLE=1 TARGET_ARCHS="x86_64 arm64" ./.github/autobuild/mac.sh
# Disable CodeQL on mac as it interferes with signing the binaries (signing hangs, see #2563 and #2564)
run_codeql: false
xcode_version: 16.3.0
dependency_cache_key: qt6
is_main_build_target: true

# Reminder: If Legacy is removed, be sure to add a dedicated job for CodeQL again.
- config_name: MacOS Legacy (artifacts+CodeQL)
target_os: macos
building_on_os: macos-15-intel
base_command: QT_VERSION=5.15.2 SIGN_IF_POSSIBLE=0 ARTIFACT_SUFFIX=_legacy ./.github/autobuild/mac.sh
base_command: QT=5 SIGN_IF_POSSIBLE=0 ARTIFACT_SUFFIX=_legacy ./.github/autobuild/mac.sh
# Enable CodeQL on mac legacy as this version does not get signed
run_codeql: true
# macos-15-intel ships with Xcode 16.x; while Qt5 is older, Xcode 16 still supports building it
# https://developer.apple.com/support/xcode/
# https://xcodereleases.com/
xcode_version: 16.3.0
dependency_cache_key: qt5
is_main_build_target: true

- config_name: iOS (artifacts)
target_os: ios
building_on_os: macos-15
base_command: QT_VERSION=5.15.2 ./.github/autobuild/ios.sh
base_command: ./.github/autobuild/ios.sh
# Build failed with CodeQL enabled when last tested 03/2022 (#2490).
# There are no hints that iOS is supposed to be supported by CodeQL.
# Therefore, disable it:
run_codeql: false
xcode_version: 26.2
dependency_cache_key: ios

- config_name: Windows (artifact+codeQL)
target_os: windows
building_on_os: windows-2025
base_command: powershell .\.github\autobuild\windows.ps1 -Stage
run_codeql: true
dependency_cache_key: asio
is_main_build_target: true

- config_name: Windows JACK (artifact)
target_os: windows
building_on_os: windows-2025
base_command: powershell .\.github\autobuild\windows.ps1 -BuildOption jackonwindows -Stage
run_codeql: false
dependency_cache_key: jack

# This injects the build_all_targets information into each matrix output:
build_all_targets:
Expand Down Expand Up @@ -294,13 +299,29 @@ jobs:
fetch-depth: ${{ matrix.config.checkout_fetch_depth || '1' }}

- name: Cache Mac dependencies
if: matrix.config.target_os == 'macos'
if: matrix.config.target_os == 'macos' && matrix.config.dependency_cache_key == 'qt6'
uses: actions/cache@v6
with:
path: |
~/qt
~/Library/Cache/jamulus-dependencies
key: ${{ matrix.config.target_os }}-${{ hashFiles('.github/workflows/autobuild.yml', '.github/autobuild/mac.sh', 'mac/deploy_mac.sh') }}-${{ matrix.config.base_command }}
key: ${{ matrix.config.target_os }}-${{ hashFiles('.github/autobuild/mac-dependencies_qt6.sh') }}-${{ matrix.config.dependency_cache_key }}

- name: Cache Mac Legacy dependencies
if: matrix.config.target_os == 'macos' && matrix.config.dependency_cache_key == 'qt5'
uses: actions/cache@v6
with:
path: |
~/qt
~/Library/Cache/jamulus-dependencies
key: ${{ matrix.config.target_os }}-${{ hashFiles('.github/autobuild/mac-dependencies_qt5.sh') }}-${{ matrix.config.dependency_cache_key }}

- name: Cache iOS dependencies
if: matrix.config.target_os == 'ios'
uses: actions/cache@v6
with:
path: ~/qt
key: ${{ matrix.config.target_os }}-${{ hashFiles('.github/autobuild/ios-dependencies.sh') }}-${{ matrix.config.dependency_cache_key }}

- name: Cache Windows dependencies
if: matrix.config.target_os == 'windows'
Expand All @@ -312,7 +333,7 @@ jobs:
C:\AutobuildCache
${{ github.workspace }}\libs\NSIS\NSIS-source
${{ github.workspace }}\libs\ASIOSDK2
key: ${{ matrix.config.target_os }}-${{ hashFiles('.github/workflows/autobuild.yml', '.github/autobuild/windows.ps1', 'windows/deploy_windows.ps1') }}-${{ matrix.config.base_command }}
key: ${{ matrix.config.target_os }}-${{ hashFiles('.github/autobuild/windows-dependencies.ps1') }}-${{ matrix.config.dependency_cache_key }}

- name: Cache Android dependencies
if: matrix.config.target_os == 'android'
Expand Down Expand Up @@ -359,6 +380,7 @@ jobs:
NOTARIZATION_PASSWORD: ${{ secrets.NOTARIZATION_PASSWORD }}
KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }}
MACOS_CA_PUBLICKEY: ${{ secrets.MACOS_CA_PUBKEY }}

- name: Post-Build for ${{ matrix.config.config_name }}
id: get-artifacts
run: ${{ matrix.config.base_command }} get-artifacts
Expand Down
Loading
Loading