Browse Source

CI: Use non-local install prefix for Linux package runs on CI

PatTheMav 3 years ago
parent
commit
7190271f6a
1 changed files with 5 additions and 1 deletions
  1. 5 1
      .github/scripts/.build.zsh

+ 5 - 1
.github/scripts/.build.zsh

@@ -165,7 +165,11 @@ Usage: %B${functrace[1]%:*}%b <option> [<options>]
         -DCMAKE_FRAMEWORK_PATH="${project_root:h}/obs-build-dependencies/obs-plugin-deps/Frameworks"
       )
       ;;
-    linux-*) ;;
+    linux-*)
+      if (( ${+CI} )) {
+        cmake_args+=(-DCMAKE_INSTALL_PREFIX=/usr)
+      }
+      ;;
   }
 
   cmake -S . -B build_${target} -G Ninja ${cmake_args}