Skip to content

Commit

Permalink
Install OpenGL on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
t20100 committed Sep 4, 2024
1 parent 66dcafe commit c422862
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,49 +23,40 @@ jobs:
python-version: "3.8"
QT_API: PyQt5
with_opencl: false
with_opengl: true
- os: ubuntu-latest
python-version: "3.11"
QT_API: PyQt6
with_opencl: true
with_opengl: true
- os: ubuntu-latest
python-version: "3.12"
QT_API: PySide6
with_opencl: true
with_opengl: true

- os: macos-13
python-version: "3.10"
QT_API: PyQt5
with_opencl: true
with_opengl: true
- os: macos-13
python-version: "3.12"
QT_API: PyQt6
with_opencl: true
with_opengl: true
- os: macos-13
python-version: "3.9"
QT_API: PySide6
with_opencl: true
with_opengl: true

- os: windows-latest
python-version: "3.9"
QT_API: PyQt5
with_opencl: false
with_opengl: false
- os: windows-latest
python-version: "3.12"
QT_API: PyQt6
with_opencl: false
with_opengl: false
- os: windows-latest
python-version: "3.10"
QT_API: PySide6
with_opencl: false
with_opengl: false

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -94,6 +85,11 @@ jobs:
python-version: ${{ matrix.python-version }}
cache: "pip"

- name: Setup OpenGL
if: runner.os == 'Windows'
run: |
C:\\msys64\\usr\\bin\\wget.exe -nv -O $(python -c 'import sys, os.path; print(os.path.dirname(sys.executable))')\\opengl32.dll http://www.silx.org/pub/silx/continuous_integration/opengl32_mingw-mesa-x86_64.dll
- name: Install build dependencies
run: |
pip install --upgrade --pre build cython setuptools wheel
Expand Down Expand Up @@ -122,7 +118,6 @@ jobs:
QT_API: ${{ matrix.QT_API }}
SILX_TEST_LOW_MEM: "False"
SILX_OPENCL: ${{ matrix.with_opencl && 'True' || 'False' }}
WITH_GL_TEST: ${{ matrix.with_opengl && 'True' || 'False' }}
run: |
if [ ${{ runner.os }} == 'Linux' ]; then
export OCL_ICD_VENDORS=$(pwd)/intel_opencl_icd/vendors
Expand Down

0 comments on commit c422862

Please sign in to comment.