Skip to content

Commit 34c9b3c

Browse files
Windows CI
Signed-off-by: Cédrik Fuoco <[email protected]>
1 parent 39eace1 commit 34c9b3c

File tree

1 file changed

+122
-0
lines changed

1 file changed

+122
-0
lines changed

.github/workflows/ci.yml

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
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: Setup msys2
40+
uses: msys2/setup-msys2@v2
41+
with:
42+
msystem: MINGW64
43+
update: true
44+
install: >-
45+
mingw-w64-x86_64-autotools
46+
mingw-w64-x86_64-glew
47+
mingw-w64-x86_64-libarchive
48+
mingw-w64-x86_64-make
49+
mingw-w64-x86_64-meson
50+
mingw-w64-x86_64-toolchain
51+
autoconf
52+
automake
53+
bison
54+
flex
55+
libtool
56+
nasm
57+
ninja
58+
p7zip
59+
patch
60+
unzip
61+
zip
62+
63+
- name: Setup PATH environment variable
64+
run: |
65+
echo "PATH=C:/hostedtoolcache/windows/Python/3.10.11/x64:$PATH" >> $GITHUB_ENV
66+
shell: msys2 {0}
67+
68+
- name: Print PATH environment variable
69+
run: |
70+
echo $PATH
71+
shell: msys2 {0}
72+
73+
- name: Check Python executable location
74+
run: |
75+
which python
76+
which python3
77+
shell: msys2 {0}
78+
79+
- name: Prepare Qt folder
80+
run: |
81+
mkdir -p /c/qt
82+
shell: msys2 {0}
83+
84+
- name: Check Qt folder
85+
run: |
86+
ls -al /c/qt
87+
shell: msys2 {0}
88+
89+
- name: Cache Qt installation
90+
uses: actions/cache@v3
91+
id: qt-cache
92+
with:
93+
path: "c:/qt"
94+
key: ${{ runner.os }}-qt-${{ hashFiles('~/qt/**') }}
95+
96+
- name: Install Qt
97+
uses: jurplel/install-qt-action@v4
98+
with:
99+
version: '5.15.2'
100+
host: 'windows'
101+
target: 'desktop'
102+
arch: 'win64_msvc2019_64'
103+
dir: "c:/qt"
104+
# Linux option only - false for Windows
105+
install-deps: 'false'
106+
modules: 'debug_info qtcharts qtnetworkauth qtquick3d qtquicktimeline qtscript qtwebengine qtwebglplugin'
107+
archives: 'd3dcompiler_47 opengl32sw qt3d qtactiveqt qtbase qtimageformats qtmultimedia qtquickcontrols qtquickcontrols2 qtscxml qtspeech qtsvg qttools qttranslations qtwebchannel qtwebsockets qtwebview qtwinextras qtxmlpatterns'
108+
cache: ${{ steps.qt-cache.outputs.cache-hit != 'true' }}
109+
cache-key-prefix: 'install-qt-action'
110+
setup-python: 'false'
111+
tools: ''
112+
set-env: 'true'
113+
tools-only: 'false'
114+
aqtversion: '==3.1.*'
115+
116+
- name: Configure
117+
run: |
118+
export QT_HOME=~/qt/5.15.2/msvc2019_64
119+
ls -al ~/qt/5.15.2/msvc2019_64
120+
source rvcmds.sh
121+
rvbootstrap
122+
shell: msys2 {0}

0 commit comments

Comments
 (0)