Skip to content

Commit cab787b

Browse files
committed
actions: linux build
1 parent 00275ad commit cab787b

3 files changed

Lines changed: 11 additions & 5 deletions

File tree

.github/workflows/CI.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ jobs:
4545
- name: Install Dependencies
4646
run: sudo apt-get install -y g++-10-multilib qt6-base-dev
4747
- name: Build
48-
run: make -j$(nproc)
48+
run: |
49+
echo UIC=/usr/lib/qt6/libexec/uic > config.mk
50+
echo MOC=/usr/lib/qt6/libexec/moc >> config.mk
51+
echo RCC=/usr/lib/qt6/libexec/rcc >> config.mk
52+
make -j$(nproc)
4953
- name: Upload Artifact
5054
uses: actions/upload-artifact@v4
5155
with:

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ CXX=g++
44
SDIR=GhostServer
55
ODIR=obj
66

7-
QtPath=/usr/lib/qt6/
8-
UIC=$(QtPath)uic
9-
MOC=$(QtPath)moc
10-
RCC=$(QtPath)rcc
7+
# If this is the wrong version, try /usr/lib/qt6/uic or /usr/lib/qt6/libexec/uic
8+
UIC=uic
9+
MOC=moc
10+
RCC=rcc
1111

1212
SRCS_GUI=$(SDIR)/main.cpp $(SDIR)/mainwindow.cpp $(SDIR)/commands.cpp $(SDIR)/networkmanager.cpp $(SDIR)/mainwindow_qt.cpp $(SDIR)/networkmanager_qt.cpp $(SDIR)/GhostServer_qrc.cpp
1313
OBJS_GUI=$(patsubst $(SDIR)/%.cpp, $(ODIR)/gui/%.o, $(SRCS_GUI))

docs/contributing.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ sudo apt-get install g++ qt6-base-dev
6262
sudo pacman -S gcc qt6-base
6363
```
6464

65+
Set Qt variables `UIC`, `MOC`, and `RCC` in config.mk if necessary.
66+
6567
```bash
6668
make -j$(nproc)
6769
```

0 commit comments

Comments
 (0)