Skip to content

Commit

Permalink
Update hardcoded toolchain specs
Browse files Browse the repository at this point in the history
..and update circleCI config
  • Loading branch information
CjS77 committed Oct 30, 2021
1 parent 44716f2 commit 196f223
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 2.1

defaults:
rust_image: &rust_image quay.io/tarilabs/rust_tari-build-with-deps:nightly-2021-08-18
rust_image: &rust_image quay.io/tarilabs/rust_tari-build-with-deps:nightly-2021-09-18

commands:
test:
Expand Down Expand Up @@ -76,13 +76,13 @@ commands:
- run:
name: Cargo fmt
command: |
TOOLCHAIN=$(cat rust-toolchain)
TOOLCHAIN=$(awk '/channel = /{print $NF}' rust-toolchain.toml)
rustup component add --toolchain $TOOLCHAIN rustfmt
cargo fmt --all -- --check
- run:
name: Run clippy (main source)
command: |
TOOLCHAIN=$(cat rust-toolchain)
TOOLCHAIN=$(awk '/channel = /{print $NF}' rust-toolchain.toml)
rustup component add --toolchain $TOOLCHAIN clippy
cargo clippy -- -D warnings -W clippy::cognitive_complexity
- run:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
security_audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- uses: actions-rs/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/base_node_binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
- name: Setup Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2021-08-18
toolchain: nightly-2021-09-18
components: rustfmt
override: true

Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2021-08-18
toolchain: nightly-2021-09-18
components: clippy, rustfmt
override: true
- name: cargo fmt
Expand Down Expand Up @@ -86,7 +86,6 @@ jobs:
- name: toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2021-08-18
components: clippy, rustfmt
override: true

Expand Down Expand Up @@ -135,7 +134,6 @@ jobs:
- name: toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2021-08-18
components: clippy, rustfmt
override: true

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/libwallet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ jobs:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2021-08-18
toolchain: nightly-2021-09-18
target: aarch64-apple-ios
components: rustfmt
override: true
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2021-08-18
toolchain: nightly-2021-09-18
target: x86_64-apple-ios
components: rustfmt
override: true
Expand Down

0 comments on commit 196f223

Please sign in to comment.