Skip to content

Commit

Permalink
fix CI fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Tonghui Tang committed Aug 21, 2020
1 parent 46a1fe8 commit 6f8a8fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
runs-on: ubuntu-18.04
strategy:
matrix:
rest: ["rest", ""]
rest: ["rest off", ""]
env:
BUILD_TARGET: check
OTBR_REST: ${{ matrix.rest }}
Expand Down
7 changes: 4 additions & 3 deletions script/test
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,10 @@ do_prepare()
if [[ ${OTBR_COVERAGE} == 1 ]]; then
otbr_options+=("-DOTBR_COVERAGE=ON")
fi
if [[ ${OTBR_REST} == "rest" ]]; then
otbr_options+=("-DOTBR_REST=ON")
if [[ ${OTBR_REST} == "rest off" ]]; then
otbr_options+=("-DOTBR_REST=OFF")
else
otbr_options+=("-DOTBR_REST=ON")
fi
}

Expand All @@ -157,7 +159,6 @@ do_package()
"-DBUILD_TESTING=OFF"
"-DCMAKE_INSTALL_PREFIX=/usr"
"-DCMAKE_BUILD_TYPE=Release"
"-DOTBR_REST=ON"
${otbr_options[@]+"${otbr_options[@]}"}
)

Expand Down

0 comments on commit 6f8a8fe

Please sign in to comment.