-
Notifications
You must be signed in to change notification settings - Fork 150
170 lines (146 loc) · 4.74 KB
/
ci.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
name: OpenRV
on:
push:
branches:
- 'feature/**'
paths:
- .github/workflows/ci.yml
pull_request:
branches:
- 'feature/**'
paths:
- .github/workflows/ci.yml
jobs:
windows:
runs-on: windows-latest
# Strawberry perl is installed by default.
# Using aqt to install Qt 5.15.2 (latest binary release of Qt Op)
env:
MSYS2_PATH_TYPE: inherit
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Display Python installation location
run: |
echo "%PYTHONPATH%"
echo "%PATH%"
python -c "import sys; print(sys.executable)"
- name: Setup msys2
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
cache: true
install: >-
mingw-w64-x86_64-autotools
mingw-w64-x86_64-glew
mingw-w64-x86_64-libarchive
mingw-w64-x86_64-make
mingw-w64-x86_64-meson
mingw-w64-x86_64-toolchain
autoconf
automake
bison
flex
libtool
nasm
ninja
p7zip
patch
unzip
zip
- name: List all msys2 installed package
run: |
pacman -Q
shell: msys2 {0}
- name: Setup PATH environment variable
run: |
echo "PATH=C:/hostedtoolcache/windows/Python/3.10.11/x64:$PATH" >> $GITHUB_ENV
shell: msys2 {0}
- name: Print PATH environment variable
run: |
echo $PATH
shell: msys2 {0}
- name: Check Python executable location
run: |
which python
which python3
shell: msys2 {0}
# - name: Prepare Qt folder
# run: |
# mkdir -p /c/qt
# shell: msys2 {0}
# - name: Cache Qt installation
# uses: actions/cache@v3
# id: qt-cache
# with:
# path: "c:/
# key: ${{ runner.os }}-qt-${{ hashFiles('~/qt/**') }}
# - name: Install Qt
# uses: jurplel/install-qt-action@v4
# with:
# version: '5.15.2'
# host: 'windows'
# target: 'desktop'
# arch: 'win64_msvc2019_64'
# dir: "c:/"
# # Linux option only - false for Windows
# install-deps: 'false'
# modules: 'debug_info qtcharts qtnetworkauth qtquick3d qtquicktimeline qtscript qtwebengine qtwebglplugin'
# archives: 'd3dcompiler_47 opengl32sw qt3d qtactiveqt qtbase qtimageformats qtmultimedia qtquickcontrols qtquickcontrols2 qtscxml qtspeech qtsvg qttools qttranslations qtwebchannel qtwebsockets qtwebview qtwinextras qtxmlpatterns'
# #cache: ${{ steps.qt-cache.outputs.cache-hit != 'true' }}
# cache: true
# cache-key-prefix: 'install-qt-action'
# setup-python: 'false'
# tools: ''
# set-env: 'true'
# tools-only: 'false'
# aqtversion: '==3.1.*'
# - name: Install pyenv
# run: |
# curl -fsSL https://pyenv-win.github.io/pyenv-win/install-pyenv-win.ps1 | powershell
# $env:PYENV_ROOT = "$HOME\.pyenv\pyenv-win"
# $env:PATH += ";$env:PYENV_ROOT\bin"
# - name: Initialize pyenv
# run: |
# pyenv init - --path
# - name: Install Python version
# run: |
# pyenv install 3.9.13
# pyenv global 3.9.13
- name: Install pip
run: |
python -m ensurepip
shell: cmd
- name: Install pyenv
run: |
python -m pip install pyenv-win
shell: cmd
- name: Initialize pyenv
run: |
echo "PATH=C:/hostedtoolcache/windows/Python/3.10.11/x64/lib/site-packages/pyenv-win/bin:$PATH" >> $GITHUB_ENV
shell: msys2 {0}
- name: Install Python with pyenv
run: |
pyenv install 3.10.11
shell: msys2 {0}
- name: Verify Python version
run: |
python --version
shell: msys2 {0}
# - name: Cache pip packages
# uses: actions/cache@v3
# with:
# path: "%USERPROFILE%/appdata/local/pip/cache"
# key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
# - name: Install pip
# run: |
# SETUPTOOLS_USE_DISTUTILS=stdlib python3 -m pip install --user --upgrade -r ./requirements.txt
# shell: msys2 {0}
# export QT_HOME=c:/Qt/5.15.2/msvc2019_64
# cmake -B _build -G Ninja -DCMAKE_BUILD_TYPE=Release -DRV_DEPS_QT5_LOCATION=$QT_HOME -DRV_VFX_PLATFORM=CY2023