Skip to content

Commit d53728c

Browse files
Update linux-builds.yml
1 parent a7ad438 commit d53728c

File tree

1 file changed

+40
-1
lines changed

1 file changed

+40
-1
lines changed

.github/workflows/linux-builds.yml

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,46 @@ name: linux-builds
22

33
on: [push]
44

5-
jobs:
5+
jobs:
6+
build_ubuntu_2204_cmake:
7+
runs-on: ubuntu-22.04
8+
9+
env:
10+
QT_VERSION: 6.4.2
11+
QT_DIR: ${{ github.workspace }}/Qt
12+
13+
steps:
14+
- name: Checkout source
15+
uses: actions/checkout@v4
16+
17+
- name: Install dependencies
18+
run: |
19+
sudo apt-get update
20+
sudo apt-get install -y build-essential cmake ninja-build libgl1-mesa-dev libxkbcommon-x11-0 libx11-dev
21+
22+
- name: Install Qt
23+
uses: jurplel/install-qt-action@v3
24+
with:
25+
version: ${{ env.QT_VERSION }}
26+
target: desktop
27+
host: linux
28+
arch: gcc_64
29+
dir: ${{ env.QT_DIR }}
30+
setup-python: false
31+
32+
- name: Configure with CMake
33+
run: |
34+
cmake -S . -B build \
35+
-DCMAKE_PREFIX_PATH="${{ env.QT_DIR }}/Qt/${{ env.QT_VERSION }}/gcc_64" \
36+
-DCMAKE_BUILD_TYPE=Release \
37+
-G Ninja
38+
39+
- name: Build
40+
run: cmake --build build
41+
42+
- name: Run CMake install (optional)
43+
run: cmake --install build
44+
645
build_ubuntu_2204:
746
runs-on: ubuntu-22.04
847
steps:

0 commit comments

Comments
 (0)