forked from opencor/qwt
-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (33 loc) · 1.02 KB
/
ci.yml
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
name: Build Qwt
on: [push, pull_request]
jobs:
ResInsight-x64:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
qtver: ['5.12.12', '6.5.3']
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache Qt
id: cache-qt
uses: actions/cache@v2
with:
path: ${{ github.workspace }}/Qt/
key: ${{ runner.os }}-QtCache-${{ runner.qtver }}
- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
version: ${{ runner.qtver }}
dir: "${{ github.workspace }}/Qt/"
- name: Install Linux dependencies
if: "contains( matrix.os, 'ubuntu')"
run: sudo apt-get install libxkbcommon-x11-0 libgl1-mesa-dev mesa-common-dev libglfw3-dev libglu1-mesa-dev
- name: Use MSVC (Windows)
uses: ilammy/msvc-dev-cmd@v1
- name: Configure and build
run: |
cmake -S . -B build
cmake --build build