Skip to content

Commit f41a6ff

Browse files
D3SOXansgarbecker
authored andcommitted
refactor: move macOS build to Makefile
1 parent 4205774 commit f41a6ff

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

.github/workflows/lazarus.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,7 @@ jobs:
9393

9494
- name: Build HeidiSQL (macOS)
9595
if: ${{ matrix.operating-system == 'macos-latest' }}
96-
run: |
97-
echo Building for macOS
98-
lazbuild -B --bm=Release heidisql.lpi
99-
mkdir -p ./out/macos
100-
mv -v ./out/heidisql ./out/macos/heidisql
96+
run: make build-macos
10197

10298
- name: Upload binaries macOS
10399
if: ${{ matrix.operating-system == 'macos-latest' && matrix.lazarus-versions == 'stable' }}

Makefile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ BIN := ./out/heidisql
88
BINGTK := ./out/gtk2/heidisql
99
BINQT5 := ./out/qt5/heidisql
1010
BINQT6 := ./out/qt6/heidisql
11+
BINMACOS := ./out/macos/heidisql
1112

1213
# Make shell magic to get version from somewhere
1314
#VERSION := shell magic
@@ -23,14 +24,14 @@ endif
2324

2425
VERSION := $(shell echo $(tag) | sed "s/v//")
2526

26-
.PHONY: all clean tx-pull copy-locale build-mo build-gtk2 run-gtk2 build-qt5 run-qt5 build-qt6 run-qt6 deb-package tar-gtk2 tar-qt5 tar-qt6
27+
.PHONY: all clean tx-pull copy-locale build-mo build-gtk2 run-gtk2 build-qt5 run-qt5 build-qt6 run-qt6 build-macos deb-package tar-gtk2 tar-qt5 tar-qt6
2728

2829
all: clean build-gtk2 build-qt5 build-qt6 deb-package tar-gtk2 tar-qt5 tar-qt6
2930

3031
clean:
3132
@echo "=== Cleaning"
3233
@rm -rf ./bin/lib/x86_64-linux/*
33-
@rm -f ./out/gtk2/* ./out/qt5/* ./out/qt6/*
34+
@rm -f ./out/gtk2/* ./out/qt5/* ./out/qt6/* ./out/macos/*
3435
@rm -rf ./deb ./rpm ./tar ./dist
3536

3637
copy-locale:
@@ -80,6 +81,12 @@ run-qt6: build-qt6
8081
@cp -v $(BINQT6) ./run/heidisql
8182
@./run/heidisql
8283

84+
build-macos:
85+
@echo "=== Building macOS"
86+
$(LAZBUILD) $(OPTS) $(LPI)
87+
@mkdir -p ./out/macos
88+
@mv -v $(BIN) $(BINMACOS)
89+
8390
deb-package:
8491
@echo "=== Creating debian package"
8592
rm -vrf deb

0 commit comments

Comments
 (0)