[Docker] use gcc to build

This commit is contained in:
Denis Rouzaud 2020-08-20 15:49:16 +02:00
parent 5d897d8d88
commit a2cdc4bc80
2 changed files with 7 additions and 7 deletions

View File

@ -11,8 +11,8 @@ LABEL Description="Docker container with QGIS" Vendor="QGIS.org" Version="1.1"
# build timeout in seconds, so no timeout by default
ARG BUILD_TIMEOUT=360000
ARG CC=/usr/lib/ccache/clang
ARG CXX=/usr/lib/ccache/clazy
ARG CC=/usr/lib/ccache/gcc
ARG CXX=/usr/lib/ccache/g++
ENV LANG=C.UTF-8
COPY . /QGIS
@ -55,7 +55,7 @@ RUN cmake \
&& SUCCESS=OK \
&& timeout ${BUILD_TIMEOUT}s ninja install || SUCCESS=TIMEOUT \
&& echo "$SUCCESS" > /QGIS/build_exit_value
# Additional run-time dependencies
RUN pip3 install jinja2 pygments

View File

@ -3,9 +3,9 @@ name: Build QGIS Docker images for current branches
on:
schedule:
# runs every day
# - cron: '0 0 * * *'
- cron: '0 0 * * *'
# every hour
- cron: '*/5 * * * *'
- cron: '* */1 * * *'
jobs:
build-docker:
@ -18,6 +18,8 @@ jobs:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
CC=/usr/lib/ccache/gcc
CXX=/usr/lib/ccache/g++ # Building SIP binding freezes with Clang in Docker, maybe a SIP issue, maybe not
strategy:
matrix:
@ -42,8 +44,6 @@ jobs:
run: |
DOCKER_TAG=${branch//master/latest}
DOCKER_BUILD_DEPS_FILE=qgis3-build-deps-focal.dockerfile
CC=/usr/lib/ccache/gcc
CXX=/usr/lib/ccache/g++ # Building SIP binding freezes with Clang in Docker, maybe a SIP issue, maybe not
echo "branch: ${branch}"
echo "docker tag: ${DOCKER_TAG}"