Skip to content

Commit

Permalink
[github-acction] build jobs failure due to deprecated macOS-12 enviro…
Browse files Browse the repository at this point in the history
…nment

The macOS-12 environment is deprecated, consider switching to macOS-13, macOS-14 (macos-latest) or macOS-15.

For more details, see actions/runner-images#10721

In addition, removing -s option because the -s option is not supported
by the realpath command in macOS 13 (Ventura) and later versions, so execute realpath differently depending on Linux and MacOS.
  • Loading branch information
ZhangLe2016 committed Dec 4, 2024
1 parent 461319e commit 9ad5187
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions tests/integration/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,7 @@

## This file defines constants and common functions for test cases.

if [ "$(uname)" = "Linux" ]; then
echo "OS is Linux"
readonly CUR_DIR="$(dirname "$(realpath -s "$0")")"
elif [ "$(uname)" = "Darwin" ]; then
echo "OS is Darwin"
readonly CUR_DIR="$(dirname "$(realpath "$0")")"
fi

readonly CUR_DIR="$(dirname "$(realpath -s "$0")")"
readonly TEST_ROOT_DIR=${CUR_DIR}

readonly RUNTIME_DIR=/tmp/test-ot-commissioner
Expand Down

0 comments on commit 9ad5187

Please sign in to comment.