|
1 | 1 | export RUSTUP_HOME=/usr/local/rustup |
2 | 2 | export CARGO_HOME=/usr/local/cargo |
3 | 3 | export PATH=/usr/local/cargo/bin:$PATH |
4 | | -export RUST_VERSION=1.36.0 |
5 | | - |
| 4 | +export RUST_VERSION=1.41.0 |
6 | 5 |
|
7 | 6 | set -eux |
8 | | -dpkgArch="$(dpkg --print-architecture)"; \ |
9 | | -case "${dpkgArch##*-}" in \ |
10 | | - amd64) rustArch='x86_64-unknown-linux-gnu'; rustupSha256='a46fe67199b7bcbbde2dcbc23ae08db6f29883e260e23899a88b9073effc9076' ;; \ |
11 | | - armhf) rustArch='armv7-unknown-linux-gnueabihf'; rustupSha256='6af5abbbae02e13a9acae29593ec58116ab0e3eb893fa0381991e8b0934caea1' ;; \ |
12 | | - arm64) rustArch='aarch64-unknown-linux-gnu'; rustupSha256='51862e576f064d859546cca5f3d32297092a850861e567327422e65b60877a1b' ;; \ |
13 | | - i386) rustArch='i686-unknown-linux-gnu'; rustupSha256='91456c3e6b2a3067914b3327f07bc182e2a27c44bff473263ba81174884182be' ;; \ |
14 | | - *) echo >&2 "unsupported architecture: ${dpkgArch}"; exit 1 ;; \ |
15 | | -esac; \ |
16 | | -url="https://static.rust-lang.org/rustup/archive/1.18.3/${rustArch}/rustup-init"; \ |
17 | | -wget "$url"; \ |
18 | | -echo "${rustupSha256} *rustup-init" | sha256sum -c -; \ |
19 | | -chmod +x rustup-init; \ |
20 | | -./rustup-init -y --no-modify-path --default-toolchain $RUST_VERSION; \ |
21 | | -rm rustup-init; \ |
22 | | -chmod -R a+w $RUSTUP_HOME $CARGO_HOME; \ |
23 | | -rustup --version; \ |
24 | | -cargo --version; \ |
25 | | -rustc --version; |
26 | 7 |
|
27 | | -rustup target add x86_64-unknown-linux-musl |
28 | | -apt-get update |
29 | | -apt-get install -y musl-tools |
| 8 | +dpkgArch="$(dpkg --print-architecture)" |
| 9 | +case "${dpkgArch##*-}" in |
| 10 | + amd64) rustArch='x86_64-unknown-linux-gnu'; rustupSha256='e68f193542c68ce83c449809d2cad262cc2bbb99640eb47c58fc1dc58cc30add' ;; |
| 11 | + armhf) rustArch='armv7-unknown-linux-gnueabihf'; rustupSha256='7c1c329a676e50c287d8183b88f30cd6afd0be140826a9fbbc0e3d717fab34d7' ;; |
| 12 | + arm64) rustArch='aarch64-unknown-linux-gnu'; rustupSha256='d861cc86594776414de001b96964be645c4bfa27024052704f0976dc3aed1b18' ;; |
| 13 | + i386) rustArch='i686-unknown-linux-gnu'; rustupSha256='89f1f797dca2e5c1d75790c3c6b7be0ee473a7f4eca9663e623a41272a358da0' ;; |
| 14 | + *) echo >&2 "unsupported architecture: ${dpkgArch}"; exit 1 ;; |
| 15 | +esac |
| 16 | +url="https://static.rust-lang.org/rustup/archive/1.20.2/${rustArch}/rustup-init" |
| 17 | +wget "$url" |
| 18 | +echo "${rustupSha256} *rustup-init" | sha256sum -c - |
| 19 | +chmod +x rustup-init |
| 20 | +./rustup-init -y --no-modify-path --profile minimal --default-toolchain $RUST_VERSION |
| 21 | +rm rustup-init |
| 22 | +chmod -R a+w $RUSTUP_HOME $CARGO_HOME |
| 23 | +rustup --version |
| 24 | +cargo --version |
| 25 | +rustc --version |
| 26 | + |
| 27 | +rustup target add x86_64-unknown-linux-gnu |
30 | 28 | HELM_INSTALL_DIR=/bin |
31 | 29 | curl https://raw.githubusercontent.com/helm/helm/master/scripts/get | bash |
32 | 30 | curl -L -o myke https://github.com/fiji-flo/myke/releases/download/0.9.11/myke-0.9.11-x86_64-unknown-linux-musl |
|
0 commit comments