]> git.proxmox.com Git - mirror_edk2.git/commitdiff
CI: add ~/.local/bin to PATH (Linux only)
authorOliver Steffen <osteffen@redhat.com>
Mon, 16 Jan 2023 17:40:32 +0000 (18:40 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 17 Jan 2023 19:06:32 +0000 (19:06 +0000)
Without adding ~/.local/bin to PATH, `pip install` will throw
an error when running inside a container.
Containers will be introduced to the CI in the following commits.

Signed-off-by: Oliver Steffen <osteffen@redhat.com>
Reviewed-by: Michael Kubacki <michael.kubacki@microsoft.com>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Chris Fernald <chfernal@microsoft.com>
.azurepipelines/templates/platform-build-run-steps.yml
.azurepipelines/templates/pr-gate-steps.yml

index 8803d80cf51c4bcfe312ab6a554a68ddcbf34fb8..087f460d7fecce6900c229f6d97bf22bbaa792c8 100644 (file)
@@ -39,6 +39,12 @@ parameters:
   default: ''\r
 \r
 steps:\r
+- bash: |\r
+    echo "##vso[task.prependpath]${HOME}/.local/bin"\r
+    echo "new PATH=${PATH}"\r
+  displayName: Set PATH\r
+  condition: eq('${{ parameters.tool_chain_tag }}', 'GCC5')\r
+\r
 - checkout: self\r
   clean: true\r
   fetchDepth: 1\r
index ebc1e86c37d495307e8ea456703ff8c25c2c96f5..78b2b2c8d9346a79b488f7223eeaa6a5be5f55aa 100644 (file)
@@ -16,6 +16,12 @@ parameters:
   extra_install_step: []\r
 \r
 steps:\r
+- bash: |\r
+    echo "##vso[task.prependpath]${HOME}/.local/bin"\r
+    echo "new PATH=${PATH}"\r
+  displayName: Set PATH\r
+  condition: eq('${{ parameters.tool_chain_tag }}', 'GCC5')\r
+\r
 - checkout: self\r
   clean: true\r
   fetchDepth: 1\r