Skip to content

Commit 4b842fb

Browse files
authored
Merge pull request #37 from scratchcpp/build_workflow
Add build workflow
2 parents ce76c18 + cc07517 commit 4b842fb

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

.github/workflows/build.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: '*'
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
env:
10+
BUILD_TYPE: Release
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v3
18+
with:
19+
submodules: 'recursive'
20+
21+
- name: Install dependencies
22+
run: |
23+
sudo apt-get update
24+
sudo apt-get install -y nlohmann-json3-dev libutfcpp-dev libgd-dev
25+
shell: bash
26+
- name: Install Qt
27+
uses: jurplel/install-qt-action@v3
28+
with:
29+
version: '6.6.*'
30+
- name: Configure CMake
31+
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
32+
33+
- name: Build
34+
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} -j$(nproc --all)
35+

build/FindQt.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
find_package(Qt6 6.6 COMPONENTS Gui Qml REQUIRED)
1+
find_package(Qt6 6.6 COMPONENTS Gui Qml Quick REQUIRED)

0 commit comments

Comments
 (0)