mirror of
https://github.com/SonarSource/sonarqube-scan-action.git
synced 2026-04-20 03:55:43 +00:00
SQCPPGHA-9 Extend action to support C, C++, and Objective-C projects (#161)
This commit is contained in:
parent
844ce2710b
commit
00e62e1190
19 changed files with 1118 additions and 22 deletions
25
scripts/utils.sh
Executable file
25
scripts/utils.sh
Executable file
|
|
@ -0,0 +1,25 @@
|
|||
#!/bin/bash
|
||||
|
||||
check_status() {
|
||||
exit_status=$?
|
||||
if [ $exit_status -ne 0 ]; then
|
||||
echo "::error::$1"
|
||||
exit $exit_status
|
||||
fi
|
||||
}
|
||||
|
||||
realpath() {
|
||||
case ${RUNNER_OS} in
|
||||
Windows)
|
||||
cygpath --absolute --windows "$1"
|
||||
;;
|
||||
Linux)
|
||||
readlink -f "$1"
|
||||
;;
|
||||
macOS)
|
||||
# installed by coreutils package
|
||||
greadlink -f "$1"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue