From 43024859b118972c0a1a9ef14df865cb3635102c Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Tue, 29 Jun 2021 16:04:35 +0200 Subject: [PATCH] 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. --- .github/ci_images/bionic_builder.dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/ci_images/bionic_builder.dockerfile b/.github/ci_images/bionic_builder.dockerfile index a53fc59..c1e76f6 100644 --- a/.github/ci_images/bionic_builder.dockerfile +++ b/.github/ci_images/bionic_builder.dockerfile @@ -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