1
+ name : OpenRV
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - ' feature/**'
7
+ paths :
8
+ - .github/workflows/ci.yml
9
+
10
+ pull_request :
11
+ branches :
12
+ - ' feature/**'
13
+ paths :
14
+ - .github/workflows/ci.yml
15
+
16
+ jobs :
17
+ windows :
18
+ runs-on : windows-latest
19
+ # Strawberry perl is installed by default.
20
+ # Using aqt to install Qt 5.15.2 (latest binary release of Qt Op)
21
+ env :
22
+ MSYS2_PATH_TYPE : inherit
23
+ steps :
24
+ - name : Check out repository code
25
+ uses : actions/checkout@v4
26
+ with :
27
+ submodules : recursive
28
+
29
+ - uses : actions/setup-python@v5
30
+ with :
31
+ python-version : ' 3.10'
32
+
33
+ - name : Display Python installation location
34
+ run : |
35
+ echo "%PYTHONPATH%"
36
+ echo "%PATH%"
37
+ python -c "import sys; print(sys.executable)"
38
+
39
+ - name : Prepare Qt folder
40
+ run : |
41
+ mkdir ~/qt
42
+
43
+ - name : Cache Qt installation
44
+ uses : actions/cache@v3
45
+ id : qt-cache
46
+ with :
47
+ path : ~/qt
48
+ key : ${{ runner.os }}-qt-${{ hashFiles('~/qt/**') }}
49
+
50
+ - name : Install Qt
51
+ uses : jurplel/install-qt-action@v4
52
+ with :
53
+ version : ' 5.15.2'
54
+ host : ' windows'
55
+ target : ' desktop'
56
+ arch : ' win64_msvc2019_64'
57
+ dir : ' ~/qt'
58
+ # Linux option only - false for Windows
59
+ install-deps : ' false'
60
+ modules : ' debug_info qtcharts qtnetworkauth qtquick3d qtquicktimeline qtscript qtwebengine qtwebglplugin'
61
+ archives : ' d3dcompiler_47 opengl32sw qt3d qtactiveqt qtbase qtimageformats qtmultimedia qtquickcontrols qtquickcontrols2 qtscxml qtspeech qtsvg qttools qttranslations qtwebchannel qtwebsockets qtwebview qtwinextras qtxmlpatterns'
62
+ cache : ${{ steps.qt-cache.outputs.cache-hit != 'true' }}
63
+ cache-key-prefix : ' install-qt-action'
64
+ setup-python : ' false'
65
+ tools : ' '
66
+ set-env : ' true'
67
+ tools-only : ' false'
68
+ aqtversion : ' ==3.1.*'
69
+
70
+ - name : Setup msys2
71
+ uses : msys2/setup-msys2@v2
72
+ with :
73
+ msystem : MINGW64
74
+ update : true
75
+ install : >-
76
+ mingw-w64-x86_64-autotools
77
+ mingw-w64-x86_64-glew
78
+ mingw-w64-x86_64-libarchive
79
+ mingw-w64-x86_64-make
80
+ mingw-w64-x86_64-meson
81
+ mingw-w64-x86_64-toolchain
82
+ autoconf
83
+ automake
84
+ bison
85
+ flex
86
+ libtool
87
+ nasm
88
+ ninja
89
+ p7zip
90
+ patch
91
+ unzip
92
+ zip
93
+
94
+ - name : Setup PATH environment variable
95
+ run : |
96
+ echo "PATH=C:/hostedtoolcache/windows/Python/3.10.11/x64:$PATH" >> $GITHUB_ENV
97
+ shell : msys2 {0}
98
+
99
+ - name : Print PATH environment variable
100
+ run : |
101
+ echo $PATH
102
+ shell : msys2 {0}
103
+
104
+ - name : Check Python executable location
105
+ run : |
106
+ which python
107
+ which python3
108
+ shell : msys2 {0}
109
+
110
+ - name : Configure
111
+ run : |
112
+ export QT_HOME=~/qt/5.15.2/msvc2019_64
113
+ ls -al ~/qt/5.15.2/msvc2019_64
114
+ source rvcmds.sh
115
+ rvbootstrap
116
+ shell : msys2 {0}
0 commit comments