Skip to content

Commit dbb68b0

Browse files
committed
add build GitHub actions workflow
1 parent fc1eac5 commit dbb68b0

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/build.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@v4
13+
with:
14+
submodules: "recursive"
15+
16+
- name: Setup Qt
17+
uses: jurplel/install-qt-action@v4
18+
with:
19+
version: "6.6.0"
20+
host: linux
21+
target: desktop
22+
23+
- name: Add Qt to PATH
24+
run: echo "$QT_PATH/bin" >> $GITHUB_PATH
25+
26+
- name: Install dependencies
27+
run: |
28+
sudo apt-get update
29+
sudo apt-get install -y build-essential cmake libgl1-mesa-dev
30+
31+
- name: Configure CMake
32+
run: |
33+
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release
34+
35+
- name: Build project
36+
run: |
37+
cmake --build build --config Release --parallel 2

0 commit comments

Comments
 (0)