mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
CI: Improve system architecture detection in build scripts
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
10
scripts/dist/install-tensorflow.sh
vendored
10
scripts/dist/install-tensorflow.sh
vendored
@@ -9,8 +9,14 @@ set -e
|
||||
|
||||
TF_VERSION=${TF_VERSION:-1.15.2}
|
||||
|
||||
SYSTEM_ARCH=$(uname -m)
|
||||
DESTARCH=${DESTARCH:-$SYSTEM_ARCH}
|
||||
# Determine the system architecture.
|
||||
if [[ $PHOTOPRISM_ARCH ]]; then
|
||||
SYSTEM_ARCH=$PHOTOPRISM_ARCH
|
||||
else
|
||||
SYSTEM_ARCH=$(uname -m)
|
||||
fi
|
||||
|
||||
DESTARCH=${BUILD_ARCH:-$SYSTEM_ARCH}
|
||||
|
||||
case $DESTARCH in
|
||||
amd64 | AMD64 | x86_64 | x86-64)
|
||||
|
||||
Reference in New Issue
Block a user