Skip to content

Commit f05abd7

Browse files
committed
ci: build macOS app bundle from matrix artifact on ubuntu-26.04
- build-macos-app now downloads the binary from the build matrix instead of installing Lazarus and rebuilding on a second macos runner - drop the dead lazarus-versions matrix axis - move permissions: contents: write from workflow to release job level - extract Linux Lazarus/Qt6 setup into composite actions shared by amd64/arm64 - ubuntu-latest -> ubuntu-26.04 (incl. ubuntu-26.04-arm); libqt6pas-dev now comes from Ubuntu universe, no more davidbannon debs
1 parent bb7adc9 commit f05abd7

3 files changed

Lines changed: 105 additions & 166 deletions

File tree

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Setup Lazarus 4.8 (Linux)
2+
description: Downloads the Lazarus 4.8 / FPC deb packages from Sourceforge (served by actions/cache) and installs them.
3+
inputs:
4+
arch:
5+
description: 'Debian package architecture: amd64 or arm64'
6+
required: true
7+
8+
runs:
9+
using: composite
10+
steps:
11+
# The installers are downloaded to ~/lazarus-installers, served by actions/cache.
12+
# Bump the cache key when changing the installer URLs in this action.
13+
- name: Cache Lazarus 4.8 installers
14+
uses: actions/cache@v6
15+
with:
16+
path: ~/lazarus-installers
17+
key: lazarus48-installers-linux-${{ inputs.arch }}-fpc-${{ inputs.arch == 'arm64' && '3.2.3-240813' || '3.2.2-210709' }}-ubuntu-26.04
18+
19+
- name: Install Lazarus 4.8
20+
shell: bash
21+
run: |
22+
sudo apt-get update
23+
INSTALLER_CACHE="$HOME/lazarus-installers"
24+
mkdir -p "$INSTALLER_CACHE"
25+
FPC_VER="${{ inputs.arch == 'arm64' && '3.2.3-240813' || '3.2.2-210709' }}"
26+
for pkg in "fpc-laz_${FPC_VER}_${{ inputs.arch }}.deb" "fpc-src_${FPC_VER}_${{ inputs.arch }}.deb" "lazarus-project_4.8.0-0_${{ inputs.arch }}.deb"; do
27+
if [ ! -s "$INSTALLER_CACHE/$pkg" ]; then
28+
wget -q "https://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20${{ inputs.arch }}%20DEB/Lazarus%204.8/$pkg" -O "$INSTALLER_CACHE/$pkg"
29+
fi
30+
done
31+
sudo apt-get install -y "$INSTALLER_CACHE"/fpc-laz_*.deb "$INSTALLER_CACHE"/fpc-src_*.deb "$INSTALLER_CACHE"/lazarus-project_*.deb
32+
echo "/usr/lib/lazarus/4.8" >> "$GITHUB_PATH"
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Setup Qt6 bindings (Linux)
2+
description: Installs qt6-base-dev and libqt6pas-dev from the Ubuntu repositories (libqt6pas is in universe since Ubuntu 25.10, no more third-party debs needed) and patches Lazarus 4.8 for Qt6 HiDPI.
3+
4+
runs:
5+
using: composite
6+
steps:
7+
- name: Install Qt6 and libqt6pas
8+
shell: bash
9+
run: |
10+
sudo apt-get update
11+
sudo apt-get install -y qt6-base-dev libqt6pas-dev
12+
13+
- name: Patch Lazarus 4.8 for QT6
14+
shell: bash
15+
run: |
16+
LAZARUS_DIR="/usr/share/lazarus/4.8.0"
17+
test -f "$LAZARUS_DIR/lcl/include/lclintf.inc"
18+
for p in "$GITHUB_WORKSPACE"/extra/lazarus-patches/4.8/*.patch; do
19+
sudo patch -d "$LAZARUS_DIR" -p1 --dry-run < "$p"
20+
sudo patch -d "$LAZARUS_DIR" -p1 < "$p"
21+
done
22+
grep -Fq "QPaintDevice_devicePixelRatioF" "$LAZARUS_DIR/lcl/interfaces/qt6/qtwscontrols.pp"
23+
grep -Fq "LCLIntf.SetCanvasScaleFactor(NodeBitmap.Canvas.Handle, ScaleFactor);" "$LAZARUS_DIR/components/virtualtreeview/laz.virtualtrees.pas"

0 commit comments

Comments
 (0)