File tree Expand file tree Collapse file tree 2 files changed +26
-8
lines changed
Expand file tree Collapse file tree 2 files changed +26
-8
lines changed Original file line number Diff line number Diff line change 2121 container :
2222 image : secondstate/substrate-ssvm
2323
24+ strategy :
25+ matrix :
26+ toolchain : ['stable']
27+
2428 # Steps represent a sequence of tasks that will be executed as part of the job
2529 steps :
2630 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
3135 run : |
3236 ln -sf /root/.rustup $HOME/
3337 ln -sf /root/.cargo $HOME/
34- cargo build --release
38+ rustup toolchain install ${{ matrix.toolchain }}
39+ rustup target add wasm32-unknown-unknown --toolchain ${{ matrix.toolchain }}
40+ rustup default ${{ matrix.toolchain }}
41+ cargo build --release
Original file line number Diff line number Diff line change 11FROM secondstate/ssvm:latest
2- ENV PATH="/root/.cargo/bin:${PATH}"
2+
3+ ARG DEBIAN_FRONTEND=noninteractive
4+ ARG RUSTUP_TOOLCHAIN=nightly-2020-10-06
5+ ENV RUSTUP_HOME=/usr/local/rustup \
6+ CARGO_HOME=/usr/local/cargo \
7+ PATH=/usr/local/cargo/bin:$PATH
38
49# Install rust
5- RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
6- RUN rustup update nightly && rustup update stable
7- RUN rustup target add wasm32-unknown-unknown --toolchain nightly
10+ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \
11+ && cargo install cargo-wasi
12+ RUN rustup toolchain install ${RUSTUP_TOOLCHAIN} \
13+ && rustup target add wasm32-unknown-unknown --toolchain ${RUSTUP_TOOLCHAIN} \
14+ && rustup target add wasm32-unknown-unknown --toolchain stable \
15+ && rustup default stable
816
917# Install yarn
10- RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
11- RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list
12- RUN apt update && apt install -y yarn
18+ RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
19+ && echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list
20+ RUN apt update \
21+ && apt install -y yarn
22+
23+ RUN rm -rf /var/lib/apt/lists/*
You can’t perform that action at this time.
0 commit comments