Skip to content

Commit

Permalink
chore(util/test.sh) conditionally build SDKs
Browse files Browse the repository at this point in the history
SDKs test files will have `language_sdk` as part of their name, e.g.:
- `001-rust_sdk`
- `002-go_sdk`
- `003-assemblyscript_sdk`

As such, filter examples from SDKs can be conditionally compiled based
on the presence of the aforementioned patterns in the script parameters.
  • Loading branch information
casimiro committed Nov 16, 2023
1 parent faaab75 commit 8c707d0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion util/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,14 @@ if [[ "$CI" == 'true' ]]; then
export NGX_BUILD_FORCE=1
fi

$NGX_WASM_DIR/util/sdk.sh -S go --build
case "$PARAMS" in
*assemblyscript_sdk*)
$NGX_WASM_DIR/util/sdk.sh -S assemblyscript --build
;;
*go_sdk*)
$NGX_WASM_DIR/util/sdk.sh -S go --build
;;
esac

args=()

Expand Down

0 comments on commit 8c707d0

Please sign in to comment.