Directly set the env variable in the docker file.

When running from the CI, .bashrc is not sourced so we must set the
env variable at docker file level.
This commit is contained in:
Matthieu Gautier 2021-06-29 16:04:35 +02:00
parent b8160de652
commit 43024859b1

View file

@ -38,4 +38,8 @@ USER runner
WORKDIR /home/runner
ENV PATH /home/runner/.local/bin:$PATH
RUN echo "source /opt/qt515/bin/qt515-env.sh" >> /home/runner/.bashrc
# Set qt515 environment (the equivalent of "source /opt/qt515/bin/qt515-env.sh")
# RUN echo "source /opt/qt515/bin/qt515-env.sh" >> /home/runner/.bashrc
ENV PATH=/opt/qt515/bin:$PATH \
LD_LIBRARY_PATH=/opt/qt515/lib/x86_64-linux-gnu:/opt/qt515/lib:$LD_LIBRARY_PATH \
PKG_CONFIG_PATH=/opt/qt515/lib/pkgconfig:$PKG_CONFIG_PATH