diff --git a/.github/workflows/bindings.yml b/.github/workflows/bindings.yml index 008ce788..8dead5ce 100644 --- a/.github/workflows/bindings.yml +++ b/.github/workflows/bindings.yml @@ -54,12 +54,10 @@ jobs: - uses: actions/checkout@v3 - name: install stable toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@master with: toolchain: stable target: ${{ matrix.target }} - profile: minimal - override: true - name: build libraries run: | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1c5a9c79..194b3b2c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,21 +11,16 @@ jobs: runs-on: ubuntu-latest name: Check formatting steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: install stable toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@master with: toolchain: stable - profile: minimal components: rustfmt - override: true - name: cargo fmt - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check + run: cargo fmt --all -- --check - name: clang-format uses: jidicula/clang-format-action@v4.11.0 @@ -40,29 +35,22 @@ jobs: os: [macOS-latest, windows-2019, ubuntu-latest] name: cargo clippy+test steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: install stable toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@master with: toolchain: stable components: clippy - profile: minimal - override: true - name: restore cache - uses: Swatinem/rust-cache@v1 + uses: Swatinem/rust-cache@v2 - name: cargo clippy - uses: actions-rs/cargo@v1 - with: - command: clippy - args: --all-targets -- -D warnings + run: cargo clippy --all-targets -- -D warnings - name: cargo test - uses: actions-rs/cargo@v1 - with: - command: test + run: cargo test generate-headers: uses: AccessKit/accesskit/.github/workflows/generate-headers.yml@main diff --git a/.github/workflows/generate-headers.yml b/.github/workflows/generate-headers.yml index c8fdd793..0c8defea 100644 --- a/.github/workflows/generate-headers.yml +++ b/.github/workflows/generate-headers.yml @@ -9,11 +9,7 @@ jobs: - uses: actions/checkout@v3 - name: install nightly toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly - profile: minimal - override: true + uses: dtolnay/rust-toolchain@nightly - uses: dtolnay/install@master with: