Skip to content

Commit

Permalink
[CI] Specify region when using awscli
Browse files Browse the repository at this point in the history
  • Loading branch information
hcho3 committed Oct 31, 2023
1 parent 089eaeb commit df6d848
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions ops/build-cpack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ do
done

echo "##[section]Uploading CPack for amd64..."
python -m awscli s3 cp build/*.tar.gz s3://treelite-cpack/ --acl public-read
python -m awscli s3 cp build/*.tar.gz s3://treelite-cpack/ --acl public-read --region us-west-2

rm -rf build/

Expand All @@ -30,4 +30,4 @@ do
done

echo "##[section]Uploading CPack for aarch64..."
python -m awscli s3 cp build/*.tar.gz s3://treelite-cpack/ --acl public-read
python -m awscli s3 cp build/*.tar.gz s3://treelite-cpack/ --acl public-read --region us-west-2
2 changes: 1 addition & 1 deletion ops/build-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ echo "##[section]Building MacOS Python wheels..."
tests/ci_build/build_macos_python_wheels.sh ${CIBW_PLATFORM_ID} ${COMMIT_ID}

echo "##[section]Uploading MacOS Python wheels to S3..."
python -m awscli s3 cp wheelhouse/treelite-*.whl s3://treelite-wheels/ --acl public-read
python -m awscli s3 cp wheelhouse/treelite-*.whl s3://treelite-wheels/ --acl public-read --region us-west-2
2 changes: 1 addition & 1 deletion ops/test-linux-python-wheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ echo "##[section]Running Python tests..."
python -m pytest -v -rxXs --fulltrace --durations=0 tests/python/test_sklearn_integration.py

echo "##[section]Uploading Python wheels..."
python -m awscli s3 cp python/dist/*.whl s3://treelite-wheels/ --acl public-read
python -m awscli s3 cp python/dist/*.whl s3://treelite-wheels/ --acl public-read --region us-west-2
2 changes: 1 addition & 1 deletion ops/test-sdist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ for file in ./treelite-*.tar.gz
do
mv "${file}" "${file%.tar.gz}+${COMMIT_ID}.tar.gz"
done
python -m awscli s3 cp treelite-*.tar.gz s3://treelite-wheels/ --acl public-read
python -m awscli s3 cp treelite-*.tar.gz s3://treelite-wheels/ --acl public-read --region us-west-2
2 changes: 1 addition & 1 deletion ops/test-win-python-wheel.bat
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ if %errorlevel% neq 0 exit /b %errorlevel%

echo ##[section]Uploading Python wheels...
for /R %%i in (python\\dist\\*.whl) DO (
python -m awscli s3 cp "%%i" s3://treelite-wheels/ --acl public-read
python -m awscli s3 cp "%%i" s3://treelite-wheels/ --acl public-read --region us-west-2
)

0 comments on commit df6d848

Please sign in to comment.