DEV Community

Yuta Goto
Yuta Goto

Posted on

2 1

CircleCIのRust OrbでNightly版を使う

CircleCIのRustOrbsを使うときデフォルトではStable版になっています。最近のRustのバージョンでClippyを使うときはNightlyに切り替える必要があります。

特別な用意されたコマンドは実装されていないので普通に書きます。

# .ciecleci/config.yml

version: 2.1

orbs:
  rust: circleci/rust@1.5.0

jobs:
  lint:
    docker:
      - image: circleci/rust:latest
    steps:
      - checkout
      - run: rustup default nightly
      - rust/clippy

workflows:
  version: 2
  test:
    jobs:
      - lint
Enter fullscreen mode Exit fullscreen mode

CircleCI

https://circleci.com/developer/orbs/orb/circleci/rust

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay