Skip to content

Commit

Permalink
Update to rust v1.51.0
Browse files Browse the repository at this point in the history
  • Loading branch information
howardwu committed Apr 1, 2021
1 parent d9ac468 commit f9b774a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ commands:
jobs:
rust_stable:
docker:
- image: cimg/rust:1.50.0
- image: cimg/rust:1.51.0
resource_class: 2xlarge
steps:
- checkout
Expand Down Expand Up @@ -72,11 +72,11 @@ jobs:
command: >
cd ~/project/project/ &&
docker run --security-opt seccomp=unconfined -v ~/project/project/:/home/circleci/project/
howardwu/snarkos-codecov:2021-01-31 bash /home/circleci/project/ci/kcov.sh
howardwu/snarkos-codecov:2021-03-25 bash /home/circleci/project/ci/kcov.sh
- run: cd ./project/ && bash <(curl -s https://codecov.io/bash)
rust_nightly:
docker:
- image: howardwu/snarkos-ci:2021-01-31
- image: howardwu/snarkos-ci:2021-03-25
resource_class: 2xlarge
steps:
- checkout
Expand Down
8 changes: 4 additions & 4 deletions ci/docker-kcov/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# To Update

1. Go to [Rustup components availability page](https://rust-lang.github.io/rustup-components-history/)
2. Find the latest version that supports `rustfmt` component (e.g. 2021-01-31)
3. Update the Dockerfile by changing `RUST_VERSION` to the target version (e.g. nightly-2021-01-31)
2. Find the latest version that supports `rustfmt` component (e.g. 2021-03-25)
3. Update the Dockerfile by changing `RUST_VERSION` to the target version (e.g. nightly-2021-03-25)
4. Build and push:
```bash
docker build -t howardwu/snarkos-codecov:2021-01-31 .
docker push howardwu/snarkos-codecov:2021-01-31
docker build -t howardwu/snarkos-codecov:2021-03-25 .
docker push howardwu/snarkos-codecov:2021-03-25
```
2 changes: 1 addition & 1 deletion ci/docker-rust/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM buildpack-deps:buster

FROM cimg/base:2020.09

ENV RUST_VERSION=nightly-2021-01-31 \
ENV RUST_VERSION=nightly-2021-03-25 \
PATH=/home/circleci/.cargo/bin:$PATH

RUN curl -O https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-gnu/rustup-init && \
Expand Down
8 changes: 4 additions & 4 deletions ci/docker-rust/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
1. Go to [Rustup components availability page](https://rust-lang.github.io/rustup-components-history/)
2. Find out latest version that supports `rustfmt` component (e.g. 2021-01-31)
3. Edit Dockerfile. Change `RUST_VERSION` to the target version e.g. nightly-2021-01-31.
2. Find out latest version that supports `rustfmt` component (e.g. 2021-03-25)
3. Edit Dockerfile. Change `RUST_VERSION` to the target version e.g. nightly-2021-03-25.
4. Build and push:

```bash
docker build -t howardwu/snarkos-ci:2021-01-31 .
docker push howardwu/snarkos-ci:2021-01-31
docker build -t howardwu/snarkos-ci:2021-03-25 .
docker push howardwu/snarkos-ci:2021-03-25
```

0 comments on commit f9b774a

Please sign in to comment.