Skip to content

Commit

Permalink
Windows CI
Browse files Browse the repository at this point in the history
Signed-off-by: Cédrik Fuoco <[email protected]>
  • Loading branch information
cedrik-fuoco-adsk committed Aug 27, 2024
1 parent 39eace1 commit 04b3024
Showing 1 changed file with 123 additions and 0 deletions.
123 changes: 123 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
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
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: 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: Check Qt folder
run: |
ls -al /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: Setup python
run: |
export QT_HOME=c:/Qt/5.15.2/msvc2019_64
SETUPTOOLS_USE_DISTUTILS=stdlib python3 -m pip install --user --upgrade -r ./requirements.txt
shell: msys2 {0}

# cmake -B _build -G Ninja -DCMAKE_BUILD_TYPE=Release -DRV_DEPS_QT5_LOCATION=$QT_HOME -DRV_VFX_PLATFORM=CY2023

0 comments on commit 04b3024

Please sign in to comment.