-
-
Notifications
You must be signed in to change notification settings - Fork 300
76 lines (73 loc) · 2.59 KB
/
63477276.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
name: question_63477276
on: [push]
jobs:
ci:
name: ${{ matrix.os.name }} Python-${{ matrix.python }} Qt-${{ matrix.qt }}
runs-on: ${{ matrix.os.runs-on }}
strategy:
fail-fast: false
matrix:
os:
- name: Windows
extension: "*.dll"
runs-on: windows-latest
- name: Linux
extension: "*.so"
runs-on: ubuntu-latest
- name: MacOS
extension: "*.dylib"
runs-on: macos-latest
python: [3.6, 3.7, 3.8]
qt: [5.15.0]
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install Linux dependencies
if: matrix.os.name == 'Linux'
run: |
sudo apt-get install '^libxcb.*-dev' libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
architecture: x64
- name: install pyqt5
run: pip install pyqt5==5.15.0
- name: before
uses: GabrielBB/[email protected]
with:
run: python -c "from PyQt5 import QtWidgets; app = QtWidgets.QApplication([]); print(QtWidgets.QStyleFactory.keys())"
- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
version: ${{ matrix.qt }}
dir: ${{ github.workspace }}/qt/
- name: clone qtstyleplugins
run: git clone https://code.qt.io/qt/qtstyleplugins.git
- name: compile qtstyleplugins in Windows
if: matrix.os.name == 'Windows'
shell: cmd
run: |
call "C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Auxiliary/Build/vcvars64.bat"
cd qtstyleplugins
qmake
nmake
nmake install
- name: compile qtstyleplugins in Linux or MacOS
if: matrix.os.name == 'Linux' || matrix.os.name == 'MacOS'
run: |
cd qtstyleplugins
qmake
make
make install
#- name: copy binaries
# run: python questions/63477276/search_binaries.py qtstyleplugins/plugins/styles/
#- name: after
# uses: GabrielBB/[email protected]
# with:
# run: python -c "from PyQt5 import QtWidgets; app = QtWidgets.QApplication([]); print(QtWidgets.QStyleFactory.keys())"
- name: upload
uses: actions/upload-artifact@v2
with:
path: qtstyleplugins/plugins/styles/${{ matrix.os.extension }}
name: qtstyleplugins-${{ matrix.os.name }}-Python${{ matrix.python }}-Qt${{ matrix.qt }}