diff options
| author | 2022-07-22 02:36:46 -0700 | |
|---|---|---|
| committer | 2022-07-22 18:13:06 -0700 | |
| commit | dc45147736136f5f3c8b63cbeb0dda5e8df19dc5 (patch) | |
| tree | d942c5896023589aaabeb4a9c138d60a093b4579 /.ci | |
| parent | Merge pull request #8611 from liamwhite/fix-flatpak-crash (diff) | |
| download | yuzu-dc45147736136f5f3c8b63cbeb0dda5e8df19dc5.tar.gz yuzu-dc45147736136f5f3c8b63cbeb0dda5e8df19dc5.tar.xz yuzu-dc45147736136f5f3c8b63cbeb0dda5e8df19dc5.zip | |
ci: pass environment variables to linux docker (AppImage)
Variables in question:
AZURECIREPO TITLEBARFORMATIDLE TITLEBARFORMATRUNNING DISPLAYVERSION
CMakeModules/GenerateSCMRev.cmake has some logic that looks at BUILD_REPOSITORY variable inside CMake
src/common/CMakeLists.txt has some logic that takes some items from environment variables and
sets variables inside CMake
This is the whole section at the moment.
if (DEFINED ENV{AZURECIREPO})
set(BUILD_REPOSITORY $ENV{AZURECIREPO})
endif()
if (DEFINED ENV{TITLEBARFORMATIDLE})
set(TITLE_BAR_FORMAT_IDLE $ENV{TITLEBARFORMATIDLE})
endif ()
if (DEFINED ENV{TITLEBARFORMATRUNNING})
set(TITLE_BAR_FORMAT_RUNNING $ENV{TITLEBARFORMATRUNNING})
endif ()
if (DEFINED ENV{DISPLAYVERSION})
set(DISPLAY_VERSION $ENV{DISPLAYVERSION})
endif ()
Diffstat (limited to '.ci')
| -rw-r--r-- | .ci/scripts/linux/exec.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/.ci/scripts/linux/exec.sh b/.ci/scripts/linux/exec.sh index fc4594d65..78e8aeabf 100644 --- a/.ci/scripts/linux/exec.sh +++ b/.ci/scripts/linux/exec.sh | |||
| @@ -4,5 +4,10 @@ mkdir -p "ccache" || true | |||
| 4 | chmod a+x ./.ci/scripts/linux/docker.sh | 4 | chmod a+x ./.ci/scripts/linux/docker.sh |
| 5 | # the UID for the container yuzu user is 1027 | 5 | # the UID for the container yuzu user is 1027 |
| 6 | sudo chown -R 1027 ./ | 6 | sudo chown -R 1027 ./ |
| 7 | docker run -e ENABLE_COMPATIBILITY_REPORTING -e CCACHE_DIR=/yuzu/ccache -v "$(pwd):/yuzu" -w /yuzu yuzuemu/build-environments:linux-fresh /bin/bash /yuzu/.ci/scripts/linux/docker.sh "$1" | 7 | |
| 8 | # The environment variables listed below: | ||
| 9 | # AZURECIREPO TITLEBARFORMATIDLE TITLEBARFORMATRUNNING DISPLAYVERSION | ||
| 10 | # are requested in src/common/CMakeLists.txt and appear to be provided somewhere in Azure DevOps | ||
| 11 | |||
| 12 | docker run -e AZURECIREPO -e TITLEBARFORMATIDLE -e TITLEBARFORMATRUNNING -e DISPLAYVERSION -e ENABLE_COMPATIBILITY_REPORTING -e CCACHE_DIR=/yuzu/ccache -v "$(pwd):/yuzu" -w /yuzu yuzuemu/build-environments:linux-fresh /bin/bash /yuzu/.ci/scripts/linux/docker.sh "$1" | ||
| 8 | sudo chown -R $UID ./ | 13 | sudo chown -R $UID ./ |