Skip to content

Commit bf1bca0

Browse files
authored
Add AltLinux CI (#3)
* Add CI for building PythonQt and generator on AltLinux * Add `-platform minimal` for AltLinux build
1 parent 0fc29d7 commit bf1bca0

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/build.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,45 @@ jobs:
128128
path: generated_cpp
129129
if-no-files-found: error
130130

131+
altlinux:
132+
runs-on: ubuntu-latest
133+
container: altlinux/base:latest
134+
steps:
135+
- name: Install Qt
136+
run: |
137+
apt-get update && apt-get install -y \
138+
gcc-c++ \
139+
python3-dev \
140+
libpython3 \
141+
qt5-base-devel \
142+
qt5-tools-devel \
143+
qt5-declarative-devel \
144+
qt5-svg-devel \
145+
qt5-multimedia-devel \
146+
qt5-xmlpatterns-devel \
147+
qt5-multimedia-devel \
148+
qt5-quick1-devel \
149+
qt5-script-devel \
150+
qt5-3d-devel \
151+
make
152+
apt-get clean
153+
154+
- name: Checkout PythonQt
155+
uses: actions/checkout@v3
156+
157+
- name: Build PythonQt
158+
run: |
159+
export QT_SELECT=qt5
160+
echo ======= SYSTEM INFO ========
161+
uname -a; gcc --version | grep "gcc"; python3 --version; qmake-qt5 --version
162+
echo ============================
163+
export PYTHON_VERSION_SHORT=`python3 --version | cut -d " " -f 2 | cut -d "." -f1,2`
164+
qmake-qt5 -r PythonQt.pro CONFIG+=release \
165+
"PYTHON_VERSION=${PYTHON_VERSION_SHORT}" PYTHON_DIR="/usr"
166+
make -j $(nproc) && \
167+
PYTHONDEVMODE=1 PYTHONASYNCIODEBUG=1 PYTHONWARNINGS=error PYTHONMALLOC=malloc_debug \
168+
make check TESTARGS="-platform minimal"
169+
131170
oldschool:
132171
strategy:
133172
fail-fast: false

0 commit comments

Comments
 (0)