-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci] Regenerate AOT binaries for every Android smoke test (#5815)
- Loading branch information
Showing
6 changed files
with
123 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/bash | ||
|
||
# TODO: replace unix_build.sh | ||
# currently only used in android build job | ||
set -ex | ||
|
||
. $(dirname $0)/common-utils.sh | ||
|
||
IN_DOCKER=$(check_in_docker) | ||
[[ "$IN_DOCKER" == "true" ]] && cd taichi | ||
|
||
build_taichi_wheel() { | ||
git fetch origin master --tags | ||
PROJECT_TAGS="" | ||
EXTRA_ARGS="" | ||
if [ "$PROJECT_NAME" = "taichi-nightly" ]; then | ||
PROJECT_TAGS="egg_info --tag-date" | ||
fi | ||
|
||
if [[ $OSTYPE == "linux-"* ]]; then | ||
if [ -f /etc/centos-release ] ; then | ||
EXTRA_ARGS="-p manylinux2014_x86_64" | ||
else | ||
EXTRA_ARGS="-p manylinux_2_27_x86_64" | ||
fi | ||
fi | ||
python3 misc/make_changelog.py --ver origin/master --repo_dir ./ --save | ||
|
||
export TAICHI_CMAKE_ARGS="${TAICHI_CMAKE_ARGS} -DTI_WITH_C_API=ON" | ||
python3 setup.py $PROJECT_TAGS bdist_wheel $EXTRA_ARGS | ||
sccache -s | ||
} | ||
|
||
setup-sccache-local | ||
setup_python | ||
|
||
build_taichi_wheel | ||
NUM_WHL=$(ls dist/*.whl | wc -l) | ||
if [ $NUM_WHL -ne 1 ]; then echo "ERROR: created more than 1 whl." && exit 1; fi | ||
|
||
chmod -R 777 "$SCCACHE_DIR" | ||
rm -f python/CHANGELOG.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters