Skip to content

Commit

Permalink
Fix case switches in MacOS 14 build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
e3m3 committed Sep 14, 2024
1 parent 78c8025 commit 05035a1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions scripts/build-and-test-macos14-container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ eval "$(${HOMEBREW_HOME}/bin/brew shellenv)"

brew install podman

case ${BUILD_MODE}
debug) build_mode=
release) build_mode=--release
*) echo "Error: BUILD_MODE=$BUILD_MODE" >2 && exit 1
case ${BUILD_MODE} in
debug) build_mode= ;;
release) build_mode=--release ;;
*) echo "Error: BUILD_MODE=$BUILD_MODE" >2 && exit 1 ;;
esac

podman machine init
Expand Down
8 changes: 4 additions & 4 deletions scripts/build-and-test-macos14-native.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ export HOMEBREW_HOME
export LLVM_HOME
export PYTHON_VENV_PATH

case ${BUILD_MODE}
debug) build_mode=
release) build_mode=--release
*) echo "Error: BUILD_MODE=$BUILD_MODE" >2 && exit 1
case ${BUILD_MODE} in
debug) build_mode= ;;
release) build_mode=--release ;;
*) echo "Error: BUILD_MODE=$BUILD_MODE" >2 && exit 1 ;;
esac

cargo build --verbose ${BUILD_MODE}
Expand Down

0 comments on commit 05035a1

Please sign in to comment.