diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d03dde78..598d724c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,6 +14,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + components: rustfmt - name: Check formatting run: cargo fmt -- --check test: @@ -22,6 +28,12 @@ jobs: RUSTFLAGS: -D warnings steps: - uses: actions/checkout@v3 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + components: clippy - uses: Swatinem/rust-cache@v1 - run: sudo apt update && sudo apt-get install pkg-config libx11-dev libasound2-dev libudev-dev - name: Clippy for bevy_rapier2d @@ -42,6 +54,12 @@ jobs: RUSTFLAGS: -D warnings steps: - uses: actions/checkout@v3 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + components: clippy - run: rustup target add wasm32-unknown-unknown - uses: Swatinem/rust-cache@v1 - name: Clippy bevy_rapier2d