File tree Expand file tree Collapse file tree 6 files changed +68
-1
lines changed Expand file tree Collapse file tree 6 files changed +68
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ language: bash
22services : docker
33
44env :
5+ - VERSION=1.23.0-beta.1 VARIANT=stretch
6+ - VERSION=1.23.0-beta.1 VARIANT=jessie
57 - VERSION=1.22.1 VARIANT=stretch
68 - VERSION=1.22.1 VARIANT=jessie
79
Original file line number Diff line number Diff line change 1+ FROM buildpack-deps:jessie
2+
3+ ENV RUSTUP_HOME=/usr/local/rustup \
4+ CARGO_HOME=/usr/local/cargo \
5+ PATH=/usr/local/cargo/bin:$PATH
6+
7+ RUN set -eux; \
8+ \
9+ # this "case" statement is generated via "update.sh"
10+ dpkgArch="$(dpkg --print-architecture)" ; \
11+ case "${dpkgArch##*-}" in \
12+ amd64) rustArch='x86_64-unknown-linux-gnu' ; rustupSha256='5a38dbaf7ab2e4335a3dfc42698a5b15e7167c93b0b06fc95f53c1da6379bf1a' ;; \
13+ armhf) rustArch='armv7-unknown-linux-gnueabihf' ; rustupSha256='f7ffec8a9cfe3096d535576e79cbd501766fda3769e9ed755cf1f18d7a3ba49c' ;; \
14+ arm64) rustArch='aarch64-unknown-linux-gnu' ; rustupSha256='bc513fbd0d221166d3aa612907016d417f8642448d1727c1446876ec9326ab2c' ;; \
15+ i386) rustArch='i686-unknown-linux-gnu' ; rustupSha256='82b7ca05ce20e7b8f8dff4a406ef3610d21feb1476fa6fd8959355ac11474ce5' ;; \
16+ *) echo >&2 "unsupported architecture: ${dpkgArch}" ; exit 1 ;; \
17+ esac; \
18+ \
19+ url="https://static.rust-lang.org/rustup/archive/1.7.0/${rustArch}/rustup-init" ; \
20+ wget "$url" ; \
21+ echo "${rustupSha256} *rustup-init" | sha256sum -c -; \
22+ chmod +x rustup-init; \
23+ ./rustup-init -y --no-modify-path --default-toolchain 1.23.0-beta.1; \
24+ rm rustup-init; \
25+ chmod -R a+w $RUSTUP_HOME $CARGO_HOME; \
26+ rustup --version; \
27+ cargo --version; \
28+ rustc --version;
Original file line number Diff line number Diff line change 1+ # see https://github.com/rust-lang-nursery/rustup.rs#other-installation-methods
2+
3+ # bashbrew-arch dpkg-arch rust-arch
4+ amd64 amd64 x86_64-unknown-linux-gnu
5+ arm32v7 armhf armv7-unknown-linux-gnueabihf
6+ arm64v8 arm64 aarch64-unknown-linux-gnu
7+ i386 i386 i686-unknown-linux-gnu
Original file line number Diff line number Diff line change 1+ 1.7.0
Original file line number Diff line number Diff line change 1+ FROM buildpack-deps:stretch
2+
3+ ENV RUSTUP_HOME=/usr/local/rustup \
4+ CARGO_HOME=/usr/local/cargo \
5+ PATH=/usr/local/cargo/bin:$PATH
6+
7+ RUN set -eux; \
8+ \
9+ # this "case" statement is generated via "update.sh"
10+ dpkgArch="$(dpkg --print-architecture)" ; \
11+ case "${dpkgArch##*-}" in \
12+ amd64) rustArch='x86_64-unknown-linux-gnu' ; rustupSha256='5a38dbaf7ab2e4335a3dfc42698a5b15e7167c93b0b06fc95f53c1da6379bf1a' ;; \
13+ armhf) rustArch='armv7-unknown-linux-gnueabihf' ; rustupSha256='f7ffec8a9cfe3096d535576e79cbd501766fda3769e9ed755cf1f18d7a3ba49c' ;; \
14+ arm64) rustArch='aarch64-unknown-linux-gnu' ; rustupSha256='bc513fbd0d221166d3aa612907016d417f8642448d1727c1446876ec9326ab2c' ;; \
15+ i386) rustArch='i686-unknown-linux-gnu' ; rustupSha256='82b7ca05ce20e7b8f8dff4a406ef3610d21feb1476fa6fd8959355ac11474ce5' ;; \
16+ *) echo >&2 "unsupported architecture: ${dpkgArch}" ; exit 1 ;; \
17+ esac; \
18+ \
19+ url="https://static.rust-lang.org/rustup/archive/1.7.0/${rustArch}/rustup-init" ; \
20+ wget "$url" ; \
21+ echo "${rustupSha256} *rustup-init" | sha256sum -c -; \
22+ chmod +x rustup-init; \
23+ ./rustup-init -y --no-modify-path --default-toolchain 1.23.0-beta.1; \
24+ rm rustup-init; \
25+ chmod -R a+w $RUSTUP_HOME $CARGO_HOME; \
26+ rustup --version; \
27+ cargo --version; \
28+ rustc --version;
Original file line number Diff line number Diff line change 22set -Eeuo pipefail
33
44declare -A aliases=(
5- [1.22.1]=' 1 1.22 latest'
5+ [1.22.1]=' 1 1.22 stable latest'
6+ [1.23.0-beta.1]=' 1.23.0-beta beta'
67)
78
89defaultDebianSuite=' stretch'
You can’t perform that action at this time.
0 commit comments