diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 106ba64..bb5be83 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,19 +22,14 @@ jobs: - aarch64-unknown-linux-musl - aarch64-linux-android steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: install toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@master with: - toolchain: nightly - target: ${{ matrix.target }} - override: true + toolchain: nightly + targets: ${{ matrix.target }} - name: compile - uses: actions-rs/cargo@v1 - with: - use-cross: true - command: build - args: --release --target=${{ matrix.target }} + run: cargo build --release --target=${{ matrix.target }} build-windows: runs-on: windows-latest strategy: @@ -42,19 +37,14 @@ jobs: target: - x86_64-pc-windows-msvc steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: install toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@master with: - toolchain: nightly - target: ${{ matrix.target }} - override: true + toolchain: nightly + targets: ${{ matrix.target }} - name: compile - uses: actions-rs/cargo@v1 - with: - use-cross: false - command: build - args: --release --target=${{ matrix.target }} + run: cargo build --release --target=${{ matrix.target }} build-apple: runs-on: macos-latest strategy: @@ -64,16 +54,11 @@ jobs: - aarch64-apple-darwin - aarch64-apple-ios steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: install toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@master with: - toolchain: nightly - target: ${{ matrix.target }} - override: true + toolchain: nightly + targets: ${{ matrix.target }} - name: compile - uses: actions-rs/cargo@v1 - with: - use-cross: true - command: build - args: --release --target=${{ matrix.target }} + run: cargo build --release --target=${{ matrix.target }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a049418..001038e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,24 +8,18 @@ jobs: clippy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@master with: toolchain: nightly components: clippy - default: true - override: true - - uses: actions-rs/clippy-check@v1 - with: - token: ${{ secrets.GITHUB_TOKEN }} - args: --all-features + - run: cargo clippy --all-features tests: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@master with: - toolchain: nightly - default: true - override: true + toolchain: nightly + components: clippy - run: cargo test -v --no-fail-fast --all-features