Skip to content

Commit

Permalink
CI runners clean-up (#104)
Browse files Browse the repository at this point in the history
* macOS 10.15 runner removed (was removed from GHA long ago)
* Remove Python 2.7 on macOS and Windows (no longer supported)
* Add RockyLinux to GHA CI
* GHA: use older 3.6 on Windows with mingw53
  • Loading branch information
iakov authored Jul 7, 2023
1 parent ea27670 commit b3b0773
Showing 1 changed file with 21 additions and 18 deletions.
39 changes: 21 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,23 +82,29 @@ jobs:
name: wrappers_ubuntu_22_04
path: generated_cpp

centos:
oldschool:
strategy:
fail-fast: false
matrix:
container:
- 'centos:7'
container_os: ['centos']
container_os_version: ['7']
container_os_python_package: ['python-debug']
configuration: ['debug', 'release']
include:
- container_os: 'rockylinux'
container_os_version: '9'
container_os_python_package: 'python3-devel'
configuration: 'release'
runs-on: ubuntu-latest
container: ${{ matrix.container }}
container: '${{ matrix.container_os }}:${{ matrix.container_os_version }}'
steps:
- name: Install Qt
run: |
yum update -y
yum groupinstall "Development Tools" -y
yum install -y \
which \
python-debug \
${{ matrix.container_os_python_package }} \
qt5-qtbase-* \
qt5-qttools* \
qt5-qtsvg \
Expand All @@ -114,40 +120,37 @@ jobs:
run: |
export QT_SELECT=qt5
echo ======= SYSTEM INFO ========
uname -a; gcc --version | grep "gcc"; python --version; qmake-qt5 --version
which python 2>/dev/null && export PYTHON_VERSION_SUFFIX= || export PYTHON_VERSION_SUFFIX=3
uname -a; gcc --version | grep "gcc"; python${PYTHON_VERSION_SUFFIX} --version; qmake-qt5 --version
echo ============================
qmake-qt5 -r PythonQt.pro CONFIG+=${{ matrix.configuration }} \
PYTHON_VERSION=$(python --version | cut -d " " -f 2 | cut -d "." -f1,2) \
PYTHON_DIR=$(which python | xargs dirname | xargs dirname)
PYTHON_VERSION=$(python${PYTHON_VERSION_SUFFIX} --version | cut -d " " -f 2 | cut -d "." -f1,2) \
PYTHON_DIR=$(which python${PYTHON_VERSION_SUFFIX} | xargs dirname | xargs dirname)
make -j 2 && make check TESTARGS="-platform offscreen"
- name: Generate Wrappers
run: |
# workaround to allow to find the Qt include dirs for installed standard qt packages
mkdir /usr/include/qt5ln; ln -s /usr/include/qt5 /usr/include/qt5ln/include
export QTDIR=/usr/include/qt5ln
cd generator
./pythonqt_generator
- name: Upload Wrappers
uses: actions/upload-artifact@v3
with:
name: wrappers_centos7
name: wrappers_${{ matrix.container_os }}-${{ matrix.container_os_version }}_${{ matrix.configuration }}
path: generated_cpp

macOS:
strategy:
fail-fast: false
matrix:
macos-version: ['10.15']
python-version: ['2.7']
macos-version: ['11']
python-version: ['3.6']
qt-version: ['5.9.*']
configuration: ['release','debug']
include:
- macos-version: '11'
python-version: '3.6'
qt-version: '5.11.*'
configuration: 'release'
- macos-version: '12'
python-version: '3.11'
qt-version: '5.12.*'
Expand Down Expand Up @@ -241,7 +244,7 @@ jobs:
# msvc-toolset: '14.16'

- qt-arch: 'win32_mingw53'
python-version: '2.7'
python-version: '3.6'
python-arch: 'x86'
qt-version: '5.11.*'

Expand Down

0 comments on commit b3b0773

Please sign in to comment.