diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ef4de6f..0e4aee3 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -16,9 +16,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout sources - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: | ~/.cargo/bin/ @@ -28,7 +28,7 @@ jobs: target/ key: ${{ runner.os }}-cargo-test-${{ hashFiles('**/Cargo.toml') }} - name: Install stable toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: profile: minimal toolchain: stable @@ -36,9 +36,10 @@ jobs: - name: Install Dependencies run: sudo apt-get update; sudo apt-get install pkg-config libx11-dev libasound2-dev libudev-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev - name: Run cargo test - uses: actions-rs/cargo@v1 - with: - command: test + steps: + - uses: actions/checkout@v3 + - uses: dtolnay/rust-toolchain@stable + - run: cargo test --all-features # Run cargo clippy -- -D warnings clippy_check: @@ -58,17 +59,17 @@ jobs: target/ key: ${{ runner.os }}-cargo-clippy-${{ hashFiles('**/Cargo.toml') }} - name: Install stable toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: toolchain: stable profile: minimal components: clippy - override: true - name: Install Dependencies run: sudo apt-get update; sudo apt-get install pkg-config libx11-dev libasound2-dev libudev-dev - name: Run clippy - uses: actions-rs/clippy-check@v1 + uses: dtolnay/rust-toolchain@stable with: + components: clippy token: ${{ secrets.GITHUB_TOKEN }} args: -- -D warnings @@ -78,16 +79,16 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout sources - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install stable toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: toolchain: stable profile: minimal components: rustfmt override: true - name: Run cargo fmt - uses: actions-rs/cargo@v1 + uses: dtolnay/rust-toolchain@nightly with: - command: fmt + components: rustfmt args: --all -- --check