File tree 2 files changed +26
-8
lines changed
2 files changed +26
-8
lines changed Original file line number Diff line number Diff line change 21
21
container :
22
22
image : secondstate/substrate-ssvm
23
23
24
+ strategy :
25
+ matrix :
26
+ toolchain : ['stable']
27
+
24
28
# Steps represent a sequence of tasks that will be executed as part of the job
25
29
steps :
26
30
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
31
35
run : |
32
36
ln -sf /root/.rustup $HOME/
33
37
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 1
1
FROM 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
3
8
4
9
# 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
8
16
9
17
# 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