From ac62a4ff4f3f4d306b9607e92bb3c4d93955c491 Mon Sep 17 00:00:00 2001 From: Daniel Eades Date: Sun, 10 Dec 2023 17:51:32 +0000 Subject: [PATCH] remove unmaintained github actions --- .github/workflows/ci.yml | 34 ++++++---------------------------- 1 file changed, 6 insertions(+), 28 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c432f745..c308fbf6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,13 +14,9 @@ jobs: - name: Checkout sources uses: actions/checkout@v3 - name: Rust toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: - toolchain: stable - override: true - profile: minimal components: rustfmt - default: true - name: Cargo cache uses: actions/cache@v3 with: @@ -29,10 +25,7 @@ jobs: ~/.cargo/git key: ${{ runner.os }}-cargo-rust_stable-${{ hashFiles('**/Cargo.toml') }} - name: Format - uses: actions-rs/cargo@v1 - with: - command: fmt - args: -- --check + run: cargo fmt -- --check tests: needs: @@ -69,18 +62,11 @@ jobs: - name: System dependencies run: sudo apt-get update; sudo apt-get install -y libxkbcommon-dev libwayland-dev - name: Rust toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - override: true - default: true + uses: dtolnay/rust-toolchain@stable - name: Test features - uses: actions-rs/cargo@v1 + run: cargo test --no-default-features --features "${{ matrix.features }}" env: RUST_BACKTRACE: full - with: - command: test - args: --no-default-features --features "${{ matrix.features }}" examples: needs: @@ -112,16 +98,8 @@ jobs: - name: System dependencies run: sudo apt-get update; sudo apt-get install -y libxkbcommon-dev libwayland-dev - name: Rust toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - override: true - default: true + uses: dtolnay/rust-toolchain@stable - name: Test example - uses: actions-rs/cargo@v1 + run: cargo check -p "${{ matrix.examples }}" env: RUST_BACKTRACE: full - with: - command: check - args: -p "${{ matrix.examples }}" -