From b82edc987dd26010940712889a23fc9124386d13 Mon Sep 17 00:00:00 2001 From: Maxim Slipenko Date: Sat, 26 Aug 2023 18:34:10 +0300 Subject: [PATCH] try fix --- .github/workflows/blank.yml | 6 +++--- build.sh | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 3 deletions(-) create mode 100755 build.sh diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 92ca6bb..b5785cc 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -3,8 +3,8 @@ name: Build on: [push, pull_request] jobs: - build_wheels: - name: Build wheels on ${{ matrix.image }} (Qt ${{ matrix.qt }} ) + build_linux: + name: Build on ${{ matrix.image }} (Qt ${{ matrix.qt }} ) runs-on: ubuntu-latest strategy: matrix: @@ -14,4 +14,4 @@ jobs: container: image: ghcr.io/python-limereport/pyside_builder_${{ matrix.image }}_${{ matrix.arch }}:qt-${{ matrix.qt }} steps: - - run: echo test; + - run: ./build.sh diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..76a49d1 --- /dev/null +++ b/build.sh @@ -0,0 +1,37 @@ +#!/bin/bash + +qt6_build() +{ + python3 setup.py build --parallel "$(nproc)" --limited-api yes + export dir_name=qfpa-py${PYTHON_VERSION}-qt${QT_VERSION}-64bit-release \ + tar czvf "/output/$dir_name.tar.gz" -C "./build/$dir_name/install" . + python3 setup.py build --parallel "$(nproc)" bdist_wheel --limited-api yes + cp ./dist/* /output +} + +qt5_build() +{ + echo "Not implemented" + exit 1 +} + +mkdir -p /output + +cd /opt \ + git clone -b ${QT_VERSION} https://code.qt.io/pyside/pyside-setup.git \ + cd pyside-setup \ + pip3 install -r requirements.txt + +case $QT_VERSION in + 6*) + qt6_build + ;; + 5*) + qt5_build + ;; + *) + echo "Unsupported version of QT" + exit 1 + ;; +esac +