Skip to content

Commit 92b124d

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

File tree

1 file changed

+94
-0
lines changed

1 file changed

+94
-0
lines changed

.github/workflows/ci.yml

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
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+
- uses: actions/setup-python@v5
29+
with:
30+
python-version: '3.10'
31+
- name: Display Python installation location
32+
run: |
33+
echo "%PYTHONPATH%"
34+
echo "%PATH%"
35+
python -c "import sys; print(sys.executable)"
36+
# - name: Install Qt
37+
# uses: jurplel/install-qt-action@v4
38+
# with:
39+
# version: '5.15.2'
40+
# host: 'windows'
41+
# target: 'desktop'
42+
# arch: 'win64_msvc2019_64'
43+
# dir: '${{ github.workspace }}/qt/'
44+
# # Linux option only - false for Windows
45+
# install-deps: 'false'
46+
# modules: 'debug_info qtcharts qtnetworkauth qtquick3d qtquicktimeline qtscript qtwebengine qtwebglplugin'
47+
# archives: 'd3dcompiler_47 opengl32sw qt3d qtactiveqt qtbase qtimageformats qtmultimedia qtquickcontrols qtquickcontrols2 qtscxml qtspeech qtsvg qttools qttranslations qtwebchannel qtwebsockets qtwebview qtwinextras qtxmlpatterns'
48+
# cache: 'false'
49+
# cache-key-prefix: 'install-qt-action'
50+
# setup-python: 'false'
51+
# tools: ''
52+
# set-env: 'true'
53+
# tools-only: 'false'
54+
# aqtversion: '==3.1.*'
55+
# - name: Display Qt directory
56+
# run: dir '${{ github.workspace }}/qt/'
57+
- name: Setup msys2
58+
uses: msys2/setup-msys2@v2
59+
with:
60+
msystem: MINGW64
61+
# update: true
62+
# install: >-
63+
# mingw-w64-x86_64-autotools
64+
# mingw-w64-x86_64-glew
65+
# mingw-w64-x86_64-libarchive
66+
# mingw-w64-x86_64-make
67+
# mingw-w64-x86_64-meson
68+
# mingw-w64-x86_64-toolchain
69+
# autoconf
70+
# automake
71+
# bison
72+
# flex
73+
# libtool
74+
# nasm
75+
# p7zip
76+
# patch
77+
# unzip
78+
# zip
79+
- name: Setup PATH environment variable
80+
shell: msys2 {0}
81+
# echo "PATH=C:/hostedtoolcache/windows/Python/3.10.11/x64:$PATH" >> $GITHUB_ENV
82+
run: |
83+
echo "export PATH=C:/hostedtoolcache/windows/Python/3.10.11/x64:$PATH" >> /home/runneradmin/.bashrc
84+
source /home/runneradmin/.bashrc
85+
cat /home/runneradmin/.bashrc
86+
- name: Print PATH environment variable
87+
shell: msys2 {0}
88+
run: |
89+
echo $PATH
90+
cat /home/runneradmin/.bashrc
91+
- name: Print PATH environment variable
92+
shell: msys2 {0}
93+
run: |
94+
which python

0 commit comments

Comments
 (0)