-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (58 loc) · 2.27 KB
/
win.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: "Windows CI"
on:
push:
branches:
- '**'
release:
types: [published]
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- name: Install Ninja
uses: seanmiddleditch/gha-setup-ninja@master
- uses: TheMrMilchmann/setup-msvc-dev@v3
with:
arch: x64
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
aqtversion: '>=3.1.18'
version: '6.8.0'
target: 'desktop'
cache: true
arch: 'win64_msvc2022_64'
modules: 'qt3d qtcharts qtconnectivity qtdatavis3d qtgraphs qtgrpc qthttpserver qtimageformats qtlanguageserver qtlocation qtlottie qtmultimedia qtnetworkauth qtpositioning qtquick3dphysics qtquickeffectmaker qtremoteobjects qtscxml qtsensors qtserialbus qtserialport qtspeech qtvirtualkeyboard qtwebchannel qtwebsockets qtwebview qt5compat qtquick3d qtquicktimeline qtshadertools'
- name: Install QCoro
uses: theCheeseboard/actions/build-cmake-project@actions
with:
project: danvratil/qcoro
commitish: v0.10.0
- name: Install libcontemporary
uses: theCheeseboard/actions/build-cmake-project@actions
with:
project: theCheeseboard/libcontemporary
commitish: features/qml
- name: Install contemporary-qml
id: contemporaryqml
uses: theCheeseboard/actions/build-cmake-project@actions
with:
project: .
commitish: .
- name: Deploy contemporary-qml
env:
SOURCE_DIRECTORY: ${{ steps.contemporaryqml.outputs.source-directory }}
BUILD_DIRECTORY: ${{ steps.contemporaryqml.outputs.build-directory }}
INSTALL_DIRECTORY: ${{ steps.contemporaryqml.outputs.install-directory }}
run: |
New-Item -ItemType Directory -Force -Path output
$executable = Move-Item -Path "$env:BUILD_DIRECTORY/playground/contemporary*.exe" -Destination output -Force -PassThru
windeployqt output --qmldir="$env:SOURCE_DIRECTORY" -printsupport
copy $env:INSTALL_DIRECTORY/bin/*.dll output
- name: Upload contemporary-qml artifact
uses: actions/upload-artifact@v4
with:
name: contemporary-qml-win
path: output