Skip to content

Commit d13f424

Browse files
Set up CI builds for different gcc versions (commontk#80)
- uses GCC docker images to build with gcc 7, 9 and 11 - uses Python 3.7.3 / Qt 5.11.3 (gcc 7/9), Python 3.9.2 / Qt 5.15.2 (gcc 11)
1 parent b7c1512 commit d13f424

File tree

2 files changed

+65
-0
lines changed

2 files changed

+65
-0
lines changed

.github/workflows/Dockerfile_gcc

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
FROM gcc:#GCC#
2+
3+
RUN apt-get update && apt-get install -y --force-yes \
4+
unzip \
5+
wget \
6+
python3 \
7+
python3-dev \
8+
libpython3-dev \
9+
qtbase5-dev \
10+
qtbase5-private-dev \
11+
qtchooser \
12+
qt5-qmake \
13+
qtbase5-dev-tools \
14+
qttools5-dev \
15+
qtdeclarative5-dev \
16+
libqt5svg5* \
17+
libqt5xmlpatterns5* \
18+
libqt5multimedia5* \
19+
libqt5multimediawidgets5* \
20+
libqt5qml5* \
21+
libqt5quickwidgets5* \
22+
qtmultimedia5-dev
23+
RUN apt-get clean
24+
25+
RUN mkdir -p work
26+
27+
COPY . work/
28+
29+
WORKDIR work
30+
31+
ARG QT_SELECT=qt5
32+
RUN uname -a; gcc --version | grep "gcc"; python3 --version; qmake --version
33+
34+
RUN qmake -r PythonQt.pro \
35+
PYTHON_VERSION=$(python3 --version | cut -d " " -f 2 | cut -d "." -f1,2) \
36+
PYTHON_DIR=$(which python3 | xargs dirname | xargs dirname)
37+
38+
CMD ["make"]

.github/workflows/build.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
runs-on: [ubuntu-latest]
17+
gcc: [7, 9, 11]
18+
19+
steps:
20+
- uses: actions/checkout@v3
21+
- name: Setup docker container
22+
shell: bash
23+
run: |
24+
cat $GITHUB_WORKSPACE/.github/workflows/Dockerfile_gcc | sed 's/#GCC#/${{ matrix.gcc }}/' > ./Dockerfile
25+
docker build -t pythonqt -f ./Dockerfile .
26+
- name: Run docker
27+
run: docker run -t pythonqt

0 commit comments

Comments
 (0)