Skip to content

Commit

Permalink
CI: fix ubuntu.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
KangLin committed Jun 23, 2023
1 parent f26ec3c commit ab30b31
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ jobs:
- name: build_debpackage.sh
working-directory: ${{github.workspace}}
env:
ENABLE_DOWNLOAD_MODUEL: ON
RabbitCommon_DIR: ${{env.SOURCE_DIR}}/RabbitCommon
SeetaFace_DIR: ${{env.INSTALL_DIR}}/lib/cmake
SeetaNet_DIR: ${{env.INSTALL_DIR}}/lib/cmake
Expand All @@ -100,11 +101,6 @@ jobs:
SeetaFaceTracker_DIR: ${{env.INSTALL_DIR}}/lib/cmake
SeetaQualityAssessor_DIR: ${{env.INSTALL_DIR}}/lib/cmake
run: |
if [ ${{matrix.BUILD_TYPE}} == 'Release' ]; then
export BUILD_VIEWER_TERMINAL=OFF
else
export tigervnc_DIR=${{env.INSTALL_DIR}}/lib/cmake/tigervnc
fi
./build_debpackage.sh /usr/lib/`uname -m`-linux-gnu/qt5
cp ../*.deb FaceRecognizer_${{env.FaceRecognizer_VERSION}}_amd64.deb
md5sum FaceRecognizer_${{env.FaceRecognizer_VERSION}}_amd64.deb > FaceRecognizer_${{env.FaceRecognizer_VERSION}}_amd64.deb.md5sum
Expand Down
14 changes: 6 additions & 8 deletions build_debpackage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

function help()
{
echo "Useg: $0 QT_ROOT ThirdLibs_DIR RabbitCommon_DIR ENABLE_DOWNLOAD"
echo "Useg: $0 QT_ROOT ThirdLibs_DIR RabbitCommon_DIR ENABLE_DOWNLOAD_MODUEL"

Check failure on line 5 in build_debpackage.sh

View workflow job for this annotation

GitHub Actions / Check for spelling errors

Useg ==> User, Usage
echo "Error message: $1"
exit -1
}
Expand All @@ -18,9 +18,7 @@ fi
if [ -n "$2" ]; then
export ThirdLibs_DIR=$2
fi
if [ ! -d "$ThirdLibs_DIR" ]; then
help "Directory don't exist: $ThirdLibs_DIR"
fi

if [ -n "${ThirdLibs_DIR}" ]; then
export ThirdLibs_DIR=${ThirdLibs_DIR}
export PKG_CONFIG_PATH=${ThirdLibs_DIR}/lib/pkgconfig
Expand All @@ -35,14 +33,14 @@ if [ -z "$RabbitCommon_DIR" ]; then
fi

if [ ! -d "$RabbitCommon_DIR" ]; then
help "Directory don't exist: $RabbitCommon_DIR"
help "RabbitCommon_DIR don't exist: $RabbitCommon_DIR"
fi

if [ -n "$4" ]; then
export ENABLE_DOWNLOAD=$4
export ENABLE_DOWNLOAD_MODUEL=$4
fi
if [ -z "$ENABLE_DOWNLOAD" ]; then
export ENABLE_DOWNLOAD=OFF
if [ -z "$ENABLE_DOWNLOAD_MODUEL" ]; then
export ENABLE_DOWNLOAD_MODUEL=OFF
fi

export RabbitCommon_DIR=$RabbitCommon_DIR
Expand Down

0 comments on commit ab30b31

Please sign in to comment.