Set PATH for each stage separately.

This commit is contained in:
Roman Telezhynskyi 2023-02-25 20:44:39 +02:00
parent e9b1c769ee
commit 2ee06edbb2

View File

@ -148,7 +148,7 @@ macos_task_template: &MACOS_TASK_TEMPLATE
env: env:
ACCESS_TOKEN: ENCRYPTED[81e0b2381ffb628b73f5c94f834010e6631191e0ad03cdd0850d440fb2737a74b68131d842030f010c1bf73ab4cdc1ae] ACCESS_TOKEN: ENCRYPTED[81e0b2381ffb628b73f5c94f834010e6631191e0ad03cdd0850d440fb2737a74b68131d842030f010c1bf73ab4cdc1ae]
QTDIR: "/opt/homebrew/opt/qt6" QTDIR: "/opt/homebrew/opt/qt6"
PATH: ${HOME}/.local/bin:`python3 -m site --user-base`/bin:$QTDIR/bin:${PATH} PATH: $QTDIR/bin:${PATH}
# ^ add user paths # ^ add user paths
PIP_CACHE_DIR: ${HOME}/.cache/pip PIP_CACHE_DIR: ${HOME}/.cache/pip
LDFLAGS: "-L$QTDIR/lib" LDFLAGS: "-L$QTDIR/lib"
@ -163,6 +163,8 @@ macos_task_template: &MACOS_TASK_TEMPLATE
pip_cache: pip_cache:
folder: ${PIP_CACHE_DIR} folder: ${PIP_CACHE_DIR}
install_script: install_script:
- echo $PATH
- export PATH="${HOME}/.local/bin:`python3 -m site --user-base`/bin:$PATH"
- echo $PATH - echo $PATH
- clang --version - clang --version
- find /Applications -maxdepth 1 -type d -name 'Xcode*.app' - find /Applications -maxdepth 1 -type d -name 'Xcode*.app'
@ -178,6 +180,8 @@ macos_task_template: &MACOS_TASK_TEMPLATE
- which qmake - which qmake
- qbs --version - qbs --version
build_script: build_script:
- echo $PATH
- export PATH="${HOME}/.local/bin:`python3 -m site --user-base`/bin:$PATH"
- echo $PATH - echo $PATH
- pwd - pwd
- conan install . -s os=Macos -s os.version=${MACOS_DEPLOYMENT_TARGET} --build=xerces-c/3.2.4 - conan install . -s os=Macos -s os.version=${MACOS_DEPLOYMENT_TARGET} --build=xerces-c/3.2.4