Skip to content

Commit 44901a8

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

File tree

1 file changed

+128
-0
lines changed

1 file changed

+128
-0
lines changed

.github/workflows/ci.yml

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

0 commit comments

Comments
 (0)