Re-apply temp msys2 python fix
Tweak `windows_upload` script to manually specify the config path to `s3cmd`.master
parent
b7353240c7
commit
937c02f185
|
@ -4,7 +4,13 @@ set -x
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
pacman -Su --needed --noconfirm
|
pacman -Su --needed --noconfirm
|
||||||
pacman -S --needed --noconfirm wget p7zip python3-pip tar xz
|
|
||||||
|
# Uncomment when https://github.com/msys2/MSYS2-packages/issues/2050 is fixed
|
||||||
|
#pacman -S --needed --noconfirm wget p7zip python3-pip tar xz
|
||||||
|
pacman -S --needed --noconfirm wget p7zip tar xz
|
||||||
|
pacman -U --noconfirm http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-python-3.8.4-1-any.pkg.tar.zst
|
||||||
|
pacman -U --noconfirm http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-python-pip-20.0.2-1-any.pkg.tar.xz
|
||||||
|
|
||||||
pip install s3cmd
|
pip install s3cmd
|
||||||
wget -nv "https://ziglang.org/deps/llvm%2bclang%2blld-10.0.0-x86_64-windows-msvc-release-mt.tar.xz"
|
wget -nv "https://ziglang.org/deps/llvm%2bclang%2blld-10.0.0-x86_64-windows-msvc-release-mt.tar.xz"
|
||||||
tar xf llvm+clang+lld-10.0.0-x86_64-windows-msvc-release-mt.tar.xz
|
tar xf llvm+clang+lld-10.0.0-x86_64-windows-msvc-release-mt.tar.xz
|
||||||
|
|
|
@ -17,8 +17,8 @@ if [ "${BUILD_REASON}" != "PullRequest" ]; then
|
||||||
mv dist "$DIRNAME"
|
mv dist "$DIRNAME"
|
||||||
7z a "$TARBALL" "$DIRNAME"
|
7z a "$TARBALL" "$DIRNAME"
|
||||||
|
|
||||||
mv "$DOWNLOADSECUREFILE_SECUREFILEPATH" "$HOME/.s3cfg"
|
# mv "$DOWNLOADSECUREFILE_SECUREFILEPATH" "$HOME/.s3cfg"
|
||||||
s3cmd put -P --add-header="cache-control: public, max-age=31536000, immutable" "$TARBALL" s3://ziglang.org/builds/
|
s3cmd -c "$DOWNLOADSECUREFILE_SECUREFILEPATH" put -P --add-header="cache-control: public, max-age=31536000, immutable" "$TARBALL" s3://ziglang.org/builds/
|
||||||
|
|
||||||
SHASUM=$(sha256sum $TARBALL | cut '-d ' -f1)
|
SHASUM=$(sha256sum $TARBALL | cut '-d ' -f1)
|
||||||
BYTESIZE=$(wc -c < $TARBALL)
|
BYTESIZE=$(wc -c < $TARBALL)
|
||||||
|
|
Loading…
Reference in New Issue