diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a972afca..b2c9f5eb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,26 +20,19 @@ jobs: uses: actions/checkout@v2 - name: Install stable toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@v1 with: - profile: minimal toolchain: ${{ matrix.rust }} - override: true - name: Run cargo test - uses: actions-rs/cargo@v1 # `x509_parser` dev-dependency has transitive dependency `time` which # has a 6-month MSRV policy, don't run tests on MSRV version since they # will always fail. if: ${{ matrix.rust != '1.60.0' }} - with: - command: test - args: --all-features + run: cargo test --all-features - name: Check default features - uses: actions-rs/cargo@v1 - with: - command: check + run: cargo check ios: name: iOS compile-check @@ -49,18 +42,13 @@ jobs: uses: actions/checkout@v2 - name: Install stable toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@v1 with: - profile: minimal toolchain: stable target: aarch64-apple-ios - override: true - name: Run check - uses: actions-rs/cargo@v1 - with: - command: check - args: --all-features -p security-framework --target aarch64-apple-ios + run: cargo check --all-features -p security-framework --target aarch64-apple-ios apple-silicon: name: Apple Silicon compile-check @@ -70,18 +58,12 @@ jobs: uses: actions/checkout@v2 - name: Install stable toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@v1 with: - profile: minimal toolchain: stable target: aarch64-apple-darwin - override: true - - name: Run check - uses: actions-rs/cargo@v1 - with: - command: check - args: --all-features -p security-framework --target aarch64-apple-darwin + run: cargo check --all-features -p security-framework --target aarch64-apple-darwin lints: name: Lints @@ -91,15 +73,8 @@ jobs: uses: actions/checkout@v2 - name: Install stable toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@v1 with: - profile: minimal toolchain: stable - override: true components: clippy - - - name: Run cargo clippy - uses: actions-rs/cargo@v1 - with: - command: clippy - args: --all-features + run: cargo clippy --all-features