forked from bitcoin-core/gui-qml
-
Notifications
You must be signed in to change notification settings - Fork 1
79 lines (71 loc) · 2.03 KB
/
Copy pathci.yml
File metadata and controls
79 lines (71 loc) · 2.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Build and Test
on:
push:
branches: [ "**" ]
pull_request:
branches: [ "**" ]
jobs:
linux:
name: ${{ matrix.job_name }}
runs-on: ${{ matrix.image }}
strategy:
fail-fast: false
matrix:
include:
- job_name: 'Ubuntu 24.04, Qt 6.4'
image: ubuntu-24.04
- job_name: 'Ubuntu 26.04, Qt 6.10'
image: ubuntu-26.04
env:
BUILD_APP_TESTS: ON
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
build-essential \
cmake \
ninja-build \
pkg-config \
libsqlite3-dev \
zlib1g-dev \
libboost-all-dev \
qt6-base-dev \
qt6-base-dev-tools \
qt6-tools-dev \
qt6-l10n-tools \
qt6-tools-dev-tools \
qt6-declarative-dev \
qml6-module-qt-labs-settings \
qml6-module-qtquick \
qml6-module-qtquick-controls \
qml6-module-qtquick-dialogs \
qml6-module-qtquick-layouts \
qml6-module-qtquick-templates \
qml6-module-qtquick-window \
qml6-module-qtqml \
qml6-module-qtqml-workerscript \
libgl-dev \
libqrencode-dev
- name: Install test dependencies
if: env.BUILD_APP_TESTS == 'ON'
run: |
sudo apt-get update
sudo apt-get install -y \
libgtest-dev \
libgmock-dev
- name: Configure (CMake)
run: |
cmake -S . -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_APP_TESTS=${{ env.BUILD_APP_TESTS }} \
-DENABLE_IPC=OFF
- name: Build
run: cmake --build build --parallel
- name: Run tests
if: env.BUILD_APP_TESTS == 'ON'
run: ctest --test-dir build --output-on-failure