Skip to content

Commit 7da6fce

Browse files
authored
Define arch for all workflows on aarch64
1 parent 8f26419 commit 7da6fce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

travis_config.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ else
3636
echo " > Linux environment "
3737
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/Qt5.15.0/lib
3838
export MAKEFLAGS="-j$(grep -E '^processor[[:space:]]*:' /proc/cpuinfo | wc -l)"
39-
if [[ $PLAT == 'aarch64' ]]; then
39+
CURRENT_ARCH=$(uname -m)
40+
if [[ $CURRENT_ARCH == 'aarch64' ]]; then
4041
# To avoid network issues with pypi.org on OpenCV CN machines
4142
export PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple
4243
echo "Running for linux aarch64"

0 commit comments

Comments
 (0)