2727 strategy :
2828 fail-fast : false
2929 matrix :
30- operating-system : [ubuntu-latest]
30+ operating-system : [ubuntu-latest, macos-latest ]
3131 lazarus-versions : ["stable"]
3232
3333 steps :
@@ -47,13 +47,14 @@ jobs:
4747 make build-gtk2
4848
4949 - name : Upload binaries GTK
50- if : ${{ matrix.lazarus-versions == 'stable' }}
50+ if : ${{ matrix.operating-system == 'ubuntu-latest' && matrix. lazarus-versions == 'stable' }}
5151 uses : actions/upload-artifact@v4
5252 with :
5353 name : ${{ matrix.operating-system }}-GTK
5454 path : out/gtk2/heidisql
5555
5656 - name : Getting libqt5pas-dev, libqt6pas-dev
57+ if : ${{ matrix.operating-system == 'ubuntu-latest' }}
5758 run : |
5859 sudo apt update
5960 sudo apt install -y libqt5pas-dev libqt6pas-dev
6566 make build-qt5
6667
6768 - name : Upload binaries QT5
68- if : ${{ matrix.lazarus-versions == 'stable' }}
69+ if : ${{ matrix.operating-system == 'ubuntu-latest' && matrix. lazarus-versions == 'stable' }}
6970 uses : actions/upload-artifact@v4
7071 with :
7172 name : ${{ matrix.operating-system }}-QT5
@@ -78,12 +79,27 @@ jobs:
7879 make build-qt6
7980
8081 - name : Upload binaries QT6
81- if : ${{ matrix.lazarus-versions == 'stable' }}
82+ if : ${{ matrix.operating-system == 'ubuntu-latest' && matrix. lazarus-versions == 'stable' }}
8283 uses : actions/upload-artifact@v4
8384 with :
8485 name : ${{ matrix.operating-system }}-QT6
8586 path : out/qt6/heidisql
8687
88+ - name : Build HeidiSQL (macOS)
89+ if : ${{ matrix.operating-system == 'macos-latest' }}
90+ run : |
91+ echo Building for macOS
92+ lazbuild -B --bm=Release heidisql.lpi
93+ mkdir -p ./out/macos
94+ mv -v ./out/heidisql ./out/macos/heidisql
95+
96+ - name : Upload binaries macOS
97+ if : ${{ matrix.operating-system == 'macos-latest' && matrix.lazarus-versions == 'stable' }}
98+ uses : actions/upload-artifact@v4
99+ with :
100+ name : ${{ matrix.operating-system }}
101+ path : out/macos/heidisql
102+
87103 release :
88104 if : contains(github.ref_type, 'tag')
89105 env :
0 commit comments